Open cnizzardini opened 3 months ago
@param $primary
is missing the type
But it would still be nice if the sniffer wouldn't fail that hard in this case.
Afaik this is fixed in https://github.com/php-collective/code-sniffer/blob/661c6bb2ce1c52233df5f74d489a8b0f5e9738da/PhpCollective/Sniffs/Commenting/TypeHintSniff.php#L120-L122 and could be pulled in.
Ran
phpcbf --colors -p src/ tests/
on my CakePHP 5 project:After running in verbose mode I identified it was having issues with this class:
Removing the comments above beforeFind seems to have resolved?
Versions: