diff options
| author | 2024-09-11 17:14:53 +0200 | |
|---|---|---|
| committer | 2024-09-11 17:14:53 +0200 | |
| commit | dfac9f5813df7d4c7c812c381364c8898333f559 (patch) | |
| tree | 978496d0a8d8b0d6b5dbe836c6829296133b337c /phpstan.neon | |
| parent | 31c8846791d4b5316fbc790202f79545c012f9c2 (diff) | |
PHPStan booleansInConditions (#6793)
* PHPStan booleansInConditions
* Uniformisation
Diffstat (limited to 'phpstan.neon')
| -rw-r--r-- | phpstan.neon | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/phpstan.neon b/phpstan.neon index 1b75235b4..85563d690 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -38,7 +38,7 @@ parameters: treatPhpDocTypesAsCertain: false strictRules: allRules: false - booleansInConditions: false # TODO pass + booleansInConditions: true closureUsesThis: true disallowedConstructs: false disallowedLooseComparison: false @@ -58,9 +58,8 @@ parameters: checkedExceptionClasses: - 'Minz_Exception' ignoreErrors: - # - '#Only booleans are allowed in (a negated boolean|a ternary operator condition|an elseif condition|an if condition|&&|\|\|), (bool|false|int(<[0-9, max]+>)?|true|null|\|)+ given.*#' + - '#Only booleans are allowed in (a negated boolean|a ternary operator condition|an elseif condition|an if condition|&&|\|\|), (bool|false|int(<[0-9, max]+>)?|true|null|\|)+ given.*#' includes: - vendor/phpstan/phpstan-phpunit/extension.neon - vendor/phpstan/phpstan-phpunit/rules.neon - vendor/phpstan/phpstan-strict-rules/rules.neon - # - vendor/phpstan/phpstan/conf/bleedingEdge.neon |
