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] PhpStan extractor nested object fix#44637
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
640a9ac tofcecfe1Comparefcecfe1 to1b11e78Comparecarsonbot commentedDec 16, 2021
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.
Just some cs issues and GTM
| } | ||
| privatefunctionextractFromFullClassName(string$fullClassName):array | ||
| privatefunctioncollectUses(\ReflectionClass$reflection):array |
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.
collectTraits would be a better name IMHO
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.
I thinkcollectUses sounds more logic in this context, because method collects not only traits, but class uses as well
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.
@nicolas-grekas rebased the branch, waiting for yours input on remaining issue
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpStanExtractorTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Korbeil 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.
Apart from Nicolas CS fixes it looks good to me too 👍
1b11e78 to2544689Compare2544689 to78d51deComparenicolas-grekas commentedDec 26, 2021
Thank you@rmikalkenas. |
Uh oh!
There was an error while loading.Please reload this page.
PhpStanExtractor wrongly extracts object type when it is in a different namespace