-
-
Notifications
You must be signed in to change notification settings - Fork 504
/
phpstan.neon.dist
40 lines (35 loc) · 1.41 KB
/
phpstan.neon.dist
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
38
39
40
includes:
- phpstan-baseline.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
parameters:
level: 5
paths:
- benchmark
- lib
- tests
excludePaths:
- tests/Doctrine/ODM/MongoDB/Tests/Mapping/Driver/fixtures/User.php
- tests/Hydrators/
- tests/PersistentCollections/
- tests/Proxies/
treatPhpDocTypesAsCertain: false
ignoreErrors:
# Ignore typing providers in tests
- '#^Method Doctrine\\ODM\\MongoDB\\Tests\\[^:]+(Test)::(get\w+|data\w+|provide\w+)\(\) return type has no value type specified in iterable type (array|iterable)\.#'
# Ignore circular references in Psalm types
- message: '#^Circular definition detected in type alias#'
path: lib/Doctrine/ODM/MongoDB/Aggregation/
# To be removed when reaching phpstan level 6
checkMissingVarTagTypehint: true
checkMissingTypehints: true
checkMissingIterableValueType: true
# Disabled due to inconsistent errors upon encountering psalm types
reportUnmatchedIgnoredErrors: false
# To be removed when reaching phpstan level 6
rules:
- PHPStan\Rules\Constants\MissingClassConstantTypehintRule
- PHPStan\Rules\Functions\MissingFunctionParameterTypehintRule
- PHPStan\Rules\Functions\MissingFunctionReturnTypehintRule
- PHPStan\Rules\Methods\MissingMethodParameterTypehintRule
- PHPStan\Rules\Methods\MissingMethodReturnTypehintRule
- PHPStan\Rules\Properties\MissingPropertyTypehintRule