-
-
Notifications
You must be signed in to change notification settings - Fork 887
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
Optional callable parameters are not enforced #7320
Comments
Had to revert the fix: phpstan/phpstan-src#1354 |
@ondrejmirtes the phpdoc in doctrine/collections is now fixed in doctrine/collections#323 So this could be re-applied once the fix is tagged. |
And this is now released: https://github.com/doctrine/collections/releases/tag/1.7.2 |
Fixed: phpstan/phpstan-src#1354 |
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. |
Bug report
PHPStan does not enforce callable parameters to be optional to match the expected callable signature declared in PHPDoc.
Code snippet that reproduces the problem
https://phpstan.org/r/6323d45a-fbf0-4f3a-a150-e7ce34fb39d1
Expected output
Did PHPStan help you today? Did it make you happy in any way?
You make the world a better place.
The text was updated successfully, but these errors were encountered: