Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
carsonbot commentedJun 8, 2022
Hey! I think@Korbeil has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
nicolas-grekas left a comment
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 OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/PropertyInfo/Extractor/PhpStanExtractor.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
ostrolucky commentedJun 9, 2022
With this, maybe my patch at#46453 is not necessary anymore? |
ostrolucky commentedJun 9, 2022
Going to answer my own comment if (self::MUTATOR ===$source && !$this->filterDocBlockParams($phpDocNode,$property)) {returnnull;} this guard can now indeed by removed, since you added more generic solution. |
…d propertiesThis demonstrates thatsymfony#46056 causes a regression and incorrectly detects types in case there are multiple phpdoc covered promoted properties.
simPod commentedJun 10, 2022
Indeed, cool |
nicolas-grekas commentedJun 10, 2022
Thank you@simPod. |
nicolas-grekas commentedJun 10, 2022
And thank you@ostrolucky also. |
I came up with this solution