Closed SharkMachine closed 5 months ago
https://github.com/squizlabs/PHP_CodeSniffer/pull/3717 looks like it will fix this.
@SharkMachine Could you please verify ? The fix from #3717 was included in the 3.8.0 release from a few weeks ago.
The fix works
Describe the bug
Squiz.Commenting.FunctionComment
doesn't seem to support PHP 8.1never
return type.Code sample
Custom ruleset
To reproduce
Steps to reproduce the behavior:
test.php
with the code sample above.phpcs.xml
with the custom ruleset above.phpcs test.php
Time: 34ms; Memory: 6MB