-
-
Notifications
You must be signed in to change notification settings - Fork 915
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
Constructor of class xxx has an unused parameter $xxx also efects at new PHP 8 Attribute #7165
Labels
Comments
This bug report is missing a link to reproduction at phpstan.org/try. It will most likely be closed after manual review. |
Can you post a piece of code how do you read such parameter? |
|
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug report
Hi if you declare a new Attribute in PHP 8 this error is thrown:
Constructor of class XX\XXX\Structs\Attribute\ArrayList has an unused parameter $structName.
In this case it is part of the standart and the paramter will be used in reflection.
Code snippet that reproduces the problem
https://phpstan.org/r/4f6303f0-6e98-46e8-9efc-9baf39b03a8b
Expected output
The issue is reported incorrectly.
Did PHPStan help you today? Did it make you happy in any way?
Yes, every day!
The text was updated successfully, but these errors were encountered: