-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpstan.neon
More file actions
35 lines (31 loc) · 1.25 KB
/
Copy pathphpstan.neon
File metadata and controls
35 lines (31 loc) · 1.25 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
parameters:
level: max
paths:
- src/
tmpDir: .phpstan
phpVersion: 80400
treatPhpDocTypesAsCertain: false
tipsOfTheDay: false
reportWrongPhpDocTypeInVarTag: true
checkBenevolentUnionTypes: true
checkUninitializedProperties: true
checkTooWideReturnTypesInProtectedAndPublicMethods: true
checkImplicitMixed: true
reportAnyTypeWideningInVarTag: true
reportPossiblyNonexistentConstantArrayOffset: true
reportPossiblyNonexistentGeneralArrayOffset: true
type_perfect:
null_over_false: true # Use null instead of false for "no-result"
no_mixed_property: true # Prevent properties from having mixed types
no_mixed_caller: true # Prevent method calls on mixed types
type_coverage:
return: 95 # Require 95% return type coverage
param: 99 # Require 99% parameter type coverage
property: 95 # Require 95% property type coverage
constant: 85 # Require 85% constant type coverage (PHP 8.3+)
declare: 100 # Require 100% strict_types declarations
parallel:
jobSize: 20
maximumNumberOfProcesses: 32
minimumNumberOfJobsPerProcess: 2
ignoreErrors: