Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some missing arguments type in PHPDoc #524

Merged
merged 1 commit into from Jun 13, 2019

Conversation

fsevestre
Copy link
Contributor

@fsevestre fsevestre commented Jun 7, 2019

On our project, we got an error from PHPStan because we override the loadFixtureFiles and the PHPDoc is not in synch with the function declaration.

Well, after changing the branch to 3.x, there are not that much of missing arguments type ^^

Copy link
Collaborator

@alexislefebvre alexislefebvre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can also remove these annotations and rely on PHP built-in type hints.

@alexislefebvre
Copy link
Collaborator

@fsevestre Please rebase your branch on 3.x to make tests pass.

@fsevestre fsevestre changed the base branch from 2.x to 3.x June 13, 2019 17:59
@fsevestre
Copy link
Contributor Author

@alexislefebvre Done

@alexislefebvre alexislefebvre merged commit 9095577 into liip:3.x Jun 13, 2019
@alexislefebvre
Copy link
Collaborator

Thanks!

@fsevestre fsevestre deleted the fix-phpdoc branch June 13, 2019 18:19
@alexislefebvre
Copy link
Collaborator

The changes you mentioned first can be done in https://github.com/liip/LiipTestFixturesBundle/blob/1.0.0/src/Test/FixturesTrait.php#L96 too. The code has been extracted between 2.x and 3.x to this new bundle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants