-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpstan.neon
28 lines (27 loc) · 976 Bytes
/
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
includes:
- 'phpstan-extensions.neon'
- 'vendor/phpstan/phpstan-phpunit/extension.neon'
- 'vendor/phpstan/phpstan-webmozart-assert/extension.neon'
parameters:
level: max
tmpDir: 'var/cache/phpstan'
reportUnmatchedIgnoredErrors: true
checkFunctionNameCase: true
checkMissingCallableSignature: true
tipsOfTheDay: false
checkAlwaysTrueCheckTypeFunctionCall: false # This doesn't play well with Assert::isInstanceOf()
checkAlwaysTrueInstanceof: true
checkAlwaysTrueStrictComparison: true
checkExplicitMixedMissingReturn: true
reportStaticMethodSignatures: true
paths:
- 'src'
ignoreErrors:
# Re-using PHPStan's dynamic return type extensions is at our own risk. Acknowledged.
-
message: '#is not covered by backward compatibility promise#'
paths:
- 'src/Extensions'
stubFiles:
- 'stubs/LocalDate.stub'
- 'stubs/LocalDateTime.stub'