-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathphpstan.neon
More file actions
60 lines (53 loc) · 1.77 KB
/
phpstan.neon
File metadata and controls
60 lines (53 loc) · 1.77 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
includes:
- vendor/cakedc/cakephp-phpstan/extension.neon
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
- vendor/rector/type-perfect/config/extension.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon
parameters:
level: 8
treatPhpDocTypesAsCertain: false
paths:
- src/
- plugins/Sandbox/src/
- plugins/AuthSandbox/src/
- plugins/StateMachineSandbox/src/
bootstrapFiles:
- %rootDir%/../../../config/bootstrap.php
- %rootDir%/../../../vendor/dereuromark/cakephp-tools/config/bootstrap.php
excludePaths:
- %rootDir%/../../../src/Console/Installer.php
- %rootDir%/../../../src/Dto/
- %rootDir%/../../../plugins/Sandbox/src/Dto/
type_perfect:
no_mixed_property: true
no_mixed_caller: true
null_over_false: true
strictRules:
disallowedLooseComparison: false
booleansInConditions: false
booleansInLoopConditions: false
uselessCast: false
requireParentConstructorCall: false
disallowedBacktick: false
disallowedEmpty: false
disallowedImplicitArrayCreation: true
disallowedShortTernary: false
overwriteVariablesWithLoop: true
closureUsesThis: false
matchingInheritedMethodNames: true
numericOperandsInArithmeticOperators: false
strictFunctionCalls: true
dynamicCallOnStaticMethod: true
switchConditionsMatchingType: false
noVariableVariables: false
strictArrayFilter: true
illegalConstructorMethodCall: true
ignoreErrors:
- identifier: missingType.generics
- identifier: missingType.iterableValue
- identifier: new.internalClass
- '#Constant \w+ not found\.#'
- '#Access to an undefined property .+SandboxCategory::\$.+.#'
- '#Call to an undefined method .+Mailer::set.+#'
- '#Access to an undefined property Cake\\ORM\\BehaviorRegistry::\$.+#'
- '#Dead catch - .+RecordNotFoundException is never thrown in the try block.#'