phpmyadmin/phpstan.neon.dist
Kamil Tekiela affd2b9d7f Enable checkTooWideReturnTypesInProtectedAndPublicMethods
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2023-02-14 21:29:56 +00:00

39 lines
1.1 KiB
Plaintext

includes:
- phpstan-baseline.neon
parameters:
level: max
paths:
- .
scanFiles:
- libraries/constants.php
bootstrapFiles:
- test/phpstan-constants.php
stubFiles:
- test/stubs/Query.stub
- test/stubs/uploadprogress.stub
excludePaths:
- examples/openid.php
- node_modules/*
- libraries/cache/*
- test/doctum-config.php
- tmp/*
- twig-templates/*
- vendor/*
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
checkBenevolentUnionTypes: true
checkAlwaysTrueCheckTypeFunctionCall: true
checkAlwaysTrueStrictComparison: true
checkUninitializedProperties: true
polluteScopeWithAlwaysIterableForeach: true
checkDynamicProperties: true
checkTooWideReturnTypesInProtectedAndPublicMethods: true