phpstan-src icon indicating copy to clipboard operation
phpstan-src copied to clipboard

Added a rule to check for always true / false result of boolean-xor operations

Open mad-briller opened this issue 3 years ago • 2 comments

closes https://github.com/phpstan/phpstan/issues/7539

Adapted the rule from the BooleanOrConstantConditionRule

mad-briller avatar Jul 10 '22 15:07 mad-briller

not sure what's going on with the remaining 2 failed actions there, if there's something i need to do let me know

mad-briller avatar Jul 10 '22 17:07 mad-briller

Oh and I forgot - this new rule has to be registered only in bleedingEdge using the conditionalTags section. (There's plenty of examples for this in conf/).

ondrejmirtes avatar Jul 11 '22 07:07 ondrejmirtes