SONARPHP-256 Rule: "Literal boolean values should not be used in condition expressions" should cover more cases.