-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
36 lines (35 loc) · 1.24 KB
/
phpstan.neon.dist
File metadata and controls
36 lines (35 loc) · 1.24 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
includes:
- vendor/phpstan/phpstan-strict-rules/rules.neon
parameters:
level: max
paths:
- src
- tests
- bin
- samples
treatPhpDocTypesAsCertain: false
checkExplicitMixedMissingReturn: true
checkFunctionNameCase: true
checkInternalClassCaseSensitivity: true
checkTooWideReturnTypesInProtectedAndPublicMethods: true
checkUninitializedProperties: true
checkMissingCallableSignature: true
reportPossiblyNonexistentGeneralArrayOffset: true
reportPossiblyNonexistentConstantArrayOffset: true
reportAlwaysTrueInLastCondition: true
reportAnyTypeWideningInVarTag: true
excludePaths:
- vendor
ignoreErrors:
# PHPStan can't see PHPUnit setUp() initializing properties; the
# idiom is widely accepted and the runtime checks fail loudly if
# setUp isn't called.
-
identifier: property.uninitialized
path: tests/*
# Test data providers and fixtures legitimately probe array shapes
# that PHPStan considers uncertain; we use assertArrayHasKey before
# access where it matters and otherwise accept the looseness.
-
identifier: offsetAccess.notFound
path: tests/*