phpstan / phpstan-strict-rules

Extra strict and opinionated rules for PHPStan
MIT License
604 stars 48 forks source link

allRules parameters set to false do not turn off rules #196

Closed ghost closed 1 year ago

ghost commented 1 year ago

Given this config

includes:
    - vendor/phpstan/phpstan-strict-rules/rules.neon

parameters:
    strictRules:
    allRules: false

and this code

$a = 1;
if ($a === 1) {
}

I still get an error Strict comparison using === between 1 and 1 will always evaluate to true.

ondrejmirtes commented 1 year ago

See https://github.com/phpstan/phpstan-strict-rules/issues/185#issuecomment-1227365019

github-actions[bot] commented 1 year ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.