phpstan / phpstan-strict-rules

Extra strict and opinionated rules for PHPStan
MIT License
592 stars 46 forks source link

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

Open dktapps opened 2 years ago

dktapps commented 2 years ago

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

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

ondrejmirtes commented 2 years ago

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