-
-
Notifications
You must be signed in to change notification settings - Fork 863
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
False positive in composer #9985
Comments
It seems to me the problem is in the handling of |
Great! Thank you for helping with how the debug works. I haven't tried it before! :) |
Fixed, gonna release PHPStan 1.10.38 with this fix soon: phpstan/phpstan-src@746de74 |
No rush for me :) But 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. |
Bug report
After upgrading to 1.10.37, a new false positive has surfaced in https://github.com/composer/composer/blob/main/src/Composer/Command/DiagnoseCommand.php#L702
I have reproduced the bug in the playground.
If I
the error doesn't appear. It takes this specific setup to make it appear.
Code snippet that reproduces the problem
https://phpstan.org/r/5eb1279c-18a6-4243-ad3c-7d223a68f8c4
Expected output
I expected
but got
Did PHPStan help you today? Did it make you happy in any way?
Thank you for a great product!
The text was updated successfully, but these errors were encountered: