-
Notifications
You must be signed in to change notification settings - Fork 64
Multi Line Generic Types are invalid #42
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
Yes, this isn't currently supported. Moving to phpdoc-parser repo if someone wanted to implement that. |
@ondrejmirtes thanks for moving. Can you point ppl in the right direction, like the file where the parsing for this takes place. So maybe someone can get startet right away :) |
See how multiline array shapes are implemented: phpdoc-parser/src/Parser/TypeParser.php Lines 282 to 304 in d4c4cd3
This is where generic types are parsed: phpdoc-parser/src/Parser/TypeParser.php Lines 165 to 176 in d4c4cd3
|
Will try to tackle this one :) |
@ondrejmirtes would it be wise to update the |
Nevermind, just found out how the parsing works exactly :) |
This can be closed then @ondrejmirtes :) |
Yes, implemented in #44 :) |
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: 0.12.19
The following error occurs when trying to declare a multi lined Generics annotation:
Code snippet that reproduces the problem
https://phpstan.org/r/80a149d9-5820-4041-bf3b-4b6e19de6b09
Expected output
No errors!
as it is in:https://phpstan.org/r/08857dad-5e7b-4615-9c99-f3397aa204ce
The text was updated successfully, but these errors were encountered: