slevomat / coding-standard

Slevomat Coding Standard for PHP_CodeSniffer provides many useful sniffs
MIT License
1.39k stars 171 forks source link

Error with php_codesniffer 3.8.0 on rule DisallowYodaComparison #1654

Closed alepieser closed 8 months ago

alepieser commented 8 months ago

Hello,

With the last version of php_codesniffer (3.8.0) we noticed this error:

ERROR: Ruleset invalid. Property "alwaysVariableOnRight" does not exist on sniff SlevomatCodingStandard.ControlStructures.DisallowYodaComparison

Thanks for your help

kukulich commented 8 months ago

You have mistake in your ruleset. This sniff does not have option alwaysVariableOnRight.

alepieser commented 8 months ago

Thanks for your quick answer

github-actions[bot] commented 7 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.