diff options
author | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2022-10-08 06:12:20 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2022-10-08 06:12:20 +0300 |
commit | cf3c3fb9f1e8bf81dcb7495835efba16d65af74f (patch) | |
tree | c9d50a979c8673a9fc6c7194e459a652420920cb /phpstan.neon.dist | |
parent | 24a9b9146bd968f2e5691224f5c5ce9f5fe05c36 (diff) |
Add the phpstan/phpstan-strict-rules package
Adds additional rules for PHPStan to make it more strict.
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'phpstan.neon.dist')
-rw-r--r-- | phpstan.neon.dist | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 4d1ade41a3..777f0e1d74 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -22,3 +22,10 @@ parameters: dynamicConstantNames: - ROOT_PATH - VERSION_SUFFIX + strictRules: + # Allow non-booleans in conditions. + booleansInConditions: false + # Allow the empty() construct. + disallowedConstructs: false + # Allow dynamic calls to static methods. + strictCalls: false |