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
@JerryMSunny PHP 8.0 attributes are not yet supported in PHPCS - see #3182. There is an open PR to fix this - #3203.
I have just tested your code sample against the open PR and that PR would fix the above issue as reported.
However, it also highlights that potentially some sniffs may need adjusting for attributes once the above mentioned PR has been merged. For example, the PSR1.Files.SideEffects sniff would start throwing an error after #3203 would be merged, while it shouldn't.
Can confirm that merging the attribute PR has fixed this issue, so closing it. If you have additional use cases that are not fixed, please report them.
When attribute is used on Class property the sniffer gives false positive error : Visibility must be declared on property
Code sample
To reproduce
Steps to reproduce the behavior:
Student.php
with the code sample above...phpcs Student.php
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: