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:
Maurício Meneghini Fauth 2022-10-08 00:12:20 -03:00
parent 24a9b9146b
commit cf3c3fb9f1
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8
3 changed files with 1338 additions and 5 deletions

View File

@ -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

View File

@ -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