-
-
Notifications
You must be signed in to change notification settings - Fork 76
/
phpstan.neon
66 lines (66 loc) · 3.02 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
includes:
- phar://%currentWorkingDirectory%/vendor/phpstan/phpstan/phpstan.phar/conf/bleedingEdge.neon
- %currentWorkingDirectory%/vendor/voku/phpstan-rules/rules.neon
parameters:
level: 8
paths:
- %currentWorkingDirectory%/src/
voku:
classesNotInIfConditions: [
AbstractValueObject
]
parallel:
processTimeout: 600.0
tmpDir: /tmp/phpstan_portable_utf8
tipsOfTheDay: false
reportUnmatchedIgnoredErrors: false
checkMissingIterableValueType: true
checkMissingCallableSignature: true
polluteScopeWithLoopInitialAssignments: true
polluteScopeWithAlwaysIterableForeach: true
checkAlwaysTrueInstanceof: true
checkAlwaysTrueCheckTypeFunctionCall: true
checkAlwaysTrueStrictComparison: true
checkExplicitMixedMissingReturn: true
checkFunctionNameCase: true
checkInternalClassCaseSensitivity: true
reportMaybesInMethodSignatures: true
reportStaticMethodSignatures: false
checkTooWideReturnTypesInProtectedAndPublicMethods: false
checkUninitializedProperties: true
earlyTerminatingMethodCalls:
earlyTerminatingFunctionCalls:
excludePaths:
bootstrapFiles:
- %currentWorkingDirectory%/bootstrap.php
ignoreErrors:
- '#voku\\helper\\UTF8::substr_replace\(\) should return TSubstrReplace#'
- '#readonly property cannot have a default value#'
- '#should return int<0, max>\|false but returns int\.#'
- '#should return int<0, max>\|false but returns int\|false\.#'
rules:
- PHPStan\Rules\DisallowedConstructs\DisallowedBacktickRule
- PHPStan\Rules\DisallowedConstructs\DisallowedImplicitArrayCreationRule
- PHPStan\Rules\Functions\ClosureUsesThisRule
- PHPStan\Rules\Methods\WrongCaseOfInheritedMethodRule
- PHPStan\Rules\Operators\OperandInArithmeticPostDecrementRule
- PHPStan\Rules\Operators\OperandInArithmeticPostIncrementRule
- PHPStan\Rules\Operators\OperandInArithmeticPreDecrementRule
- PHPStan\Rules\Operators\OperandInArithmeticPreIncrementRule
- PHPStan\Rules\Operators\OperandsInArithmeticAdditionRule
- PHPStan\Rules\Operators\OperandsInArithmeticDivisionRule
- PHPStan\Rules\Operators\OperandsInArithmeticExponentiationRule
- PHPStan\Rules\Operators\OperandsInArithmeticModuloRule
- PHPStan\Rules\Operators\OperandsInArithmeticMultiplicationRule
- PHPStan\Rules\Operators\OperandsInArithmeticSubtractionRule
- PHPStan\Rules\StrictCalls\DynamicCallOnStaticMethodsCallableRule
- PHPStan\Rules\StrictCalls\DynamicCallOnStaticMethodsRule
- PHPStan\Rules\DisallowedConstructs\DisallowedImplicitArrayCreationRule
- PHPStan\Rules\Functions\ClosureUsesThisRule
- PHPStan\Rules\SwitchConditions\MatchingTypeInSwitchCaseConditionRule
- TheCodingMachine\PHPStan\Rules\Conditionals\SwitchMustContainDefaultRule
- TheCodingMachine\PHPStan\Rules\Exceptions\EmptyExceptionRule
- TheCodingMachine\PHPStan\Rules\Exceptions\DoNotThrowExceptionBaseClassRule
services:
-
class: PHPStan\Rules\Operators\OperatorRuleHelper