-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
42 lines (41 loc) · 1.31 KB
/
Copy pathphpstan.neon
File metadata and controls
42 lines (41 loc) · 1.31 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
includes:
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
parameters:
level: max
paths:
- src
- tests
excludePaths:
analyse:
- vendor/**
ignoreErrors:
-
message: '#Dynamic call to static method#'
path: tests/*
-
# Typed return values from register() make assertInstanceOf checks always-true by design.
identifier: method.alreadyNarrowedType
path: tests/*
strictRules:
allRules: true
disallowedLooseComparison: true
booleansInConditions: true
uselessCast: true
requireParentConstructorCall: false
disallowedBacktick: true
disallowedEmpty: true
disallowedImplicitArrayCreation: true
disallowedShortTernary: true
overwriteVariablesWithLoop: true
closureUsesThis: true
matchingInheritedMethodNames: true
numericOperandsInArithmeticOperators: true
strictFunctionCalls: true
dynamicCallOnStaticMethod: true
switchConditionsMatchingType: true
noVariableVariables: true
checkMissingCallableSignature: true
checkUninitializedProperties: true
checkDynamicProperties: true
reportAlwaysTrueInLastCondition: true