-
-
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem mixing attributes and docblock #4963
Comments
This bug report is missing a link to reproduction on phpstan.org. It will most likely be closed after manual review. |
Reproduction: https://phpstan.org/r/1e6e568b-1bec-4201-84af-b1434a219043 |
This is probably really hard to solve because of nikic/PHP-Parser#762 |
As it's a duplicate of #4633, I'm closing this. 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
phpstan version is 0.12.85
Mixing attributes and docblock in the order attributes, docblock results in this error:
The error does not show when changing order, but shouldn't both cases be valid? Our phpcs rules (slevomat) fail when having it the other way round.
Is there a preferred way of mixing apidoc and attributes?
Code snippet that reproduces the problem
Expected output
No error
The text was updated successfully, but these errors were encountered: