-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpstan.neon
More file actions
59 lines (59 loc) · 1.7 KB
/
phpstan.neon
File metadata and controls
59 lines (59 loc) · 1.7 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
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon
parameters:
# Phpstan levels go the opposite way to Psalm - 1 is the laxest, 10 is the strictest.
level: 6
paths:
- src
- tests
- integrationTests
- app
treatPhpDocTypesAsCertain: false
checkUninitializedProperties: true
rememberPossiblyImpureFunctionValues: false
checkExplicitMixed: true
strictRules:
disallowedLooseComparison: false
booleansInConditions: false
booleansInLoopConditions: false
uselessCast: true
requireParentConstructorCall: true
disallowedBacktick: true
disallowedEmpty: false
disallowedImplicitArrayCreation: false
disallowedShortTernary: false
overwriteVariablesWithLoop: true
closureUsesThis: false
matchingInheritedMethodNames: true
numericOperandsInArithmeticOperators: true
strictFunctionCalls: true
dynamicCallOnStaticMethod: false
switchConditionsMatchingType: true
noVariableVariables: true
strictArrayFilter: true
illegalConstructorMethodCall: true
editorUrlTitle: '%%file%%:%%line%%'
editorUrl: '//'
ignoreErrors:
# Allow unused params if name starts with _
- '#has an unused parameter \$_#'
-
identifier: property.uninitialized
# properties in tests are initialised in setup instead of __construct.
paths:
- tests/*
- integrationTests/*
-
identifier: offsetAccess.nonOffsetAccessible
paths:
- tests/*
- integrationTests/*
# commented out below as phpstan does not allow us to suppress non-existent errors, but likely to be useful in future:
# -
# identifier: deadCode.unreachable
# # likely code after \PHPUnit\Framework\Assert::markTestSkipped or similar
# paths:
# - tests/*
# - integrationTests/*
stubFiles:
- .psalm/containers.php.stub