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] Restrict access toPhpStanExtractor based on visibility#53362
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
[PropertyInfo] Restrict access toPhpStanExtractor based on visibility#53362
Uh oh!
There was an error while loading.Please reload this page.
Conversation
src/Symfony/Component/PropertyInfo/Extractor/PhpStanExtractor.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
fc8e374 to09bfe6fCompare
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.
It looks good to me 👍
dunglas 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.
Overall, LGTM!
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.
09bfe6f toc970f96ComparePhpStanExtractor based on visibilitysrc/Symfony/Component/PropertyInfo/Tests/Fixtures/DummyPropertyAndGetterWithDifferentTypes.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
34d2ad9 toa03f5ecComparea03f5ec toe3ec55fComparefabpot commentedFeb 3, 2024
Thank you@nikophil. |
Hi,
this small PR gives a bit more control on what
PhpStanExtractorcan see or not, based on the visibility of the property or its accessor.It's pretty unusual, but sometimes, the getter does not return the same type than the property itself, and before this PR, there was actually no way to extract the type returned by the getter.
ReflectionExtractorhas this granularity, but it cannot read complex PhpDoc types.