phpstan-strict-rules icon indicating copy to clipboard operation
phpstan-strict-rules copied to clipboard

Wrong symbol shown for error report on `and`/`or` non-boolean parameters

Open dktapps opened this issue 4 years ago • 1 comments

https://phpstan.org/r/e3b1da08-3844-4f2a-ac58-a6514af25849

and is used, but the error message shows &&. Similar problem for or and ||.

dktapps avatar Nov 01 '21 15:11 dktapps

BooleanAndConstantConditionRule and BooleanOrConstantConditionRule in phpstan/phpstan also have this problem. This is the easiest issue to contribute ;)

ondrejmirtes avatar Nov 03 '21 15:11 ondrejmirtes