slevomat / coding-standard

Slevomat Coding Standard for PHP_CodeSniffer provides many useful sniffs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error with php_codesniffer 3.8.0 on rule DisallowYodaComparison

alepieser opened this issue · comments

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

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

Thanks for your quick answer

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.