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>
This commit is contained in:
parent
24a9b9146b
commit
cf3c3fb9f1
@ -100,8 +100,9 @@
|
||||
"php-webdriver/webdriver": "^1.11",
|
||||
"phpmyadmin/coding-standard": "^3.0.0",
|
||||
"phpstan/extension-installer": "^1.1",
|
||||
"phpstan/phpstan": "^1.4.8",
|
||||
"phpstan/phpstan": "^1.8",
|
||||
"phpstan/phpstan-phpunit": "^1.0",
|
||||
"phpstan/phpstan-strict-rules": "^1.4",
|
||||
"phpstan/phpstan-webmozart-assert": "^1.0",
|
||||
"phpunit/phpunit": "^8.5 || ^9.5",
|
||||
"pragmarx/google2fa-qrcode": "^2.1",
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user