-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
dependentfixtureinterface return type #337
Comments
@greg0ire I've updated to the latest version (0.12.5) The message changed a bit, but the error was still there:
changing the typehint from |
I think iterable could have been used… can you edit the vendor file directly and tell us the results? |
I changed the previous PHPDoc from We could change it to |
Oh right, so it was already not covariant anyway. @mmarton if you keep the PHPStan upgrade and downgrade data-fixtures, you should get a similar error about covariance I think… it's just that PHPStan got better at this, isn't it? |
The previous return type ( |
Yes, itt seems like the issue was on my side. |
Hi!
this commit added 'class-string[]' as return type to getDependencies: e12d512
I already had return type hint in my fixture classes like:
public function getDependencies(): iterable
And now phpstan complains because:
It may be not a BC break, it "just" broke the deployment and not the working of the code.
Do you have any suggestion? Adding fixtrues to ignore list or removeing the return typehints seems walking backwards.
regards
The text was updated successfully, but these errors were encountered: