-
Notifications
You must be signed in to change notification settings - Fork 93
wrong asumption about InputInterface::getArgument()
return type in interact()
#396
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
Comments
/cc @VincentLanglet |
I made some new tries and
And also, indeed, we need to add Null only if some types were already inferred. I opened #397 |
Please test 1.4.4 https://github.com/phpstan/phpstan-symfony/releases/tag/1.4.4 to see whether it fixes your problem. |
problem fixed ✔️ thanks! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hello,
since this PR, if the config
symfony.consoleApplicationLoader
is not provided, PHPStan will always consider that every call to$input->getArgument()
inside the methodinterfact()
will return null.Maybe some guard condition should be added gefore adding
NullType
.I'm willing to fix this if you think it is relevant
The text was updated successfully, but these errors were encountered: