forked from phpmyadmin/phpmyadmin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon.dist
39 lines (39 loc) · 1.13 KB
/
phpstan.neon.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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
polluteScopeWithLoopInitialAssignments: true