-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathphpstan.neon
35 lines (35 loc) · 1.18 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
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon
parameters:
level: max
phpVersion:
min: 80100
max: 80400
parallel:
jobSize: 20
maximumNumberOfProcesses: 32
minimumNumberOfJobsPerProcess: 2
editorUrlTitle: '%%relFile%%:%%line%%'
strictRules:
allRules: true
paths:
- src
tmpDir: vendor/.cache.phpstan
rememberPossiblyImpureFunctionValues: false
checkTooWideReturnTypesInProtectedAndPublicMethods: true
checkImplicitMixed: true
checkBenevolentUnionTypes: true
reportPossiblyNonexistentGeneralArrayOffset: true
reportPossiblyNonexistentConstantArrayOffset: true
reportAlwaysTrueInLastCondition: true
reportAnyTypeWideningInVarTag: true
# Disable checks nonsensical #[Override] attribute
checkMissingOverrideMethodAttribute: false
inferPrivatePropertyTypeFromConstructor: true
tipsOfTheDay: false
checkMissingCallableSignature: true
ignoreErrors:
- '#^PHPDoc tag @var with type FFI\|object#'
- '#^Call to an undefined method FFI\|object#'