-
-
Notifications
You must be signed in to change notification settings - Fork 916
Asymmetric @property types #9062
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
This piece of code would need some modification: https://github.com/phpstan/phpstan-src/blob/44e0d9a87798c940a9abeaa2b6fe6d0b04611f16/src/PhpDoc/PhpDocNodeResolver.php#L92-L139 |
Thanks for the info. I can try to work on this. |
Thanks Ondřej. With phpstan/phpstan-src#2329, it now works as expected. |
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. |
Feature request
It would be useful to support having
@property-read
and@property-write
with the same name but different types.(Opening a feature request as asked in #7192.)
https://phpstan.org/r/185309f7-1998-475b-a250-ad8b0b0029eb
The text was updated successfully, but these errors were encountered: