You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The repro shows @immutable phpdoc tag above works, but @readonly does not.
I belive @readonly should be supported exactly the same as @immutable.
If, for some reasons, this is not wanted because of having two phpdoc tags for the same purpose, phpstan should emit an error when @readonly above class is used, otherwise user can very easy be misleaded beliving phpstan is monitoring the class for readonly usage.
Did PHPStan help you today? Did it make you happy in any way?
No response
The text was updated successfully, but these errors were encountered:
Feature request
There is
readonly
native class modifier. However it seems unsupported as phpdoc above class.repro: https://phpstan.org/r/874645f0-1413-4f4c-a5ec-ab69a5958127
The repro shows
@immutable
phpdoc tag above works, but@readonly
does not.I belive
@readonly
should be supported exactly the same as@immutable
.If, for some reasons, this is not wanted because of having two phpdoc tags for the same purpose, phpstan should emit an error when
@readonly
above class is used, otherwise user can very easy be misleaded beliving phpstan is monitoring the class for readonly usage.Did PHPStan help you today? Did it make you happy in any way?
No response
The text was updated successfully, but these errors were encountered: