-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathphpstan.neon
More file actions
42 lines (32 loc) · 1.05 KB
/
phpstan.neon
File metadata and controls
42 lines (32 loc) · 1.05 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
37
includes:
- vendor/pepakriz/phpstan-exception-rules/extension.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon
parameters:
level: max
paths:
- src
- examples
# - tests
treatPhpDocTypesAsCertain: false
checkMissingIterableValueType: true
checkGenericClassInNonGenericObjectType: false
reportUnmatchedIgnoredErrors: false
# Better type checking (compatible with PHPStan 0.12)
checkAlwaysTrueCheckTypeFunctionCall: true
checkAlwaysTrueInstanceof: true
checkAlwaysTrueStrictComparison: true
checkExplicitMixedMissingReturn: true
checkFunctionNameCase: true
checkInternalClassCaseSensitivity: true
# Exception rules
exceptionRules:
reportUnusedCatchesOfUncheckedExceptions: true
reportUnusedCheckedThrowsInSubtypes: false
reportCheckedThrowsInGlobalScope: true
checkedExceptions:
- RuntimeException
# Ignore some legacy driver issues for now
ignoreErrors:
- '#Only booleans are allowed in#'
- '#Call to function in_array\(\) requires parameter \#3 to be set#'
- '#Anonymous function should have native return typehint#'