Closed jrfnl closed 1 year ago
FYI: I have follow-up commits ready for 11 sniffs to take readonly classes into account.
FYI: this fix is included in today's PHP_CodeSniffer 3.8.0 release.
As per #3932, development on PHP_CodeSniffer will continue in the PHPCSStandards/PHP_CodeSniffer repository. If you want to stay informed, you may want to start "watching" that repo (or watching releases from that repo).
PHP 8.2 introduces
readonly
classes. Thereadonly
keyword can be combined with theabstract
orfinal
keyword. See: https://3v4l.org/VIXgDIncludes adding a full set of tests for the
File::getClassProperties()
method, which was so far untested.Ref: