-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[PropertyInfo] Fix multi phpdoc covered promoted properties #46611
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
Conversation
Hey! I think @Korbeil has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/cc @ostrolucky in case you can come up with another failing test case? or is this robust enough?
src/Symfony/Component/PropertyInfo/Extractor/PhpStanExtractor.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/PropertyInfo/Extractor/PhpStanExtractor.php
Outdated
Show resolved
Hide resolved
With this, maybe my patch at #46453 is not necessary anymore? |
Going to answer my own comment if (self::MUTATOR === $source && !$this->filterDocBlockParams($phpDocNode, $property)) {
return null;
} this guard can now indeed by removed, since you added more generic solution. |
…d properties This demonstrates that symfony#46056 causes a regression and incorrectly detects types in case there are multiple phpdoc covered promoted properties.
Indeed, cool |
Thank you @simPod. |
And thank you @ostrolucky also. |
I came up with this solution