-
-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathphpstan.neon
42 lines (39 loc) · 1.97 KB
/
phpstan.neon
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:
- phpstan-baseline.neon
# - vendor/roave/no-floaters/rules.neon
# - vendor/phpstan/phpstan-strict-rules/rules.neon
# - vendor/ergebnis/phpstan-rules/rules.neon
# - vendor/ekino/phpstan-banned-code/extension.neon
parameters:
level: 5
paths:
- src
tmpDir: build/phpstan
# checkOctaneCompatibility: true
# checkModelProperties: true
# checkMissingIterableValueType: true
# disallowFloatsEverywhere: true
# strictRules:
# allRules: false
# booleansInConditions: false
# uselessCast: false
# requireParentConstructorCall: false
# disallowedConstructs: false
# overwriteVariablesWithLoop: false
# closureUsesThis: false
# matchingInheritedMethodNames: false
# numericOperandsInArithmeticOperators: false
# strictCalls: false
# switchConditionsMatchingType: false
# noVariableVariables: false
ignoreErrors:
- '#^@readonly property cannot have a default value\.$#'
- '#^@readonly property Guanguans\\Notify\\Foundation\\Response\:\:\$.* is assigned outside of the constructor\.$#'
- '#^Call to function method_exists\(\) with \$this\(Guanguans\\Notify\\Foundation\\Message\) and ''.*'' will always evaluate to true\.$#'
- '#^Call to method sendAsync\(\) on an unknown class Guanguans\\Notify\\Foundation\\Concerns\\HasHttpClient\.$#'
- '#^Method Guanguans\\Notify\\Foundation\\Rectors\\.*Rector\:\:refactor\(\) never returns .* so it can be removed from the return type\.$#'
- '#^Method Guanguans\\Notify\\Foundation\\Rectors\\.*Rector\:\:refactor\(\) should return 1\|2\|3\|4\|array\<PhpParser\\Node\>\|PhpParser\\Node\|null but empty return statement found\.$#'
- '#^Trait Guanguans\\Notify\\Foundation\\Concerns\\As.* is used zero times and is not analysed\.$#'
- '#^Unsafe usage of new static\(\)\.$#'
- '#^Unused result of "and" operator\.$#'
- '#^Unused result of "or" operator\.$#'