-
-
Notifications
You must be signed in to change notification settings - Fork 74
/
phpstan.neon.dist
32 lines (27 loc) · 1.26 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
includes:
- qa/PHPStan/valinor-phpstan-configuration.php
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
rules:
- CuyZ\Valinor\QA\PHPStan\Extension\ApiAndInternalAnnotationCheck
parameters:
level: max
paths:
- src
- tests
- qa
excludePaths:
- tests/StaticAnalysis
ignoreErrors:
# \PHPStan\Rules\BooleansInConditions
- '#Only booleans are allowed in .* given#'
# \PHPStan\Rules\DisallowedConstructs\DisallowedShortTernaryRule
- '#Short ternary operator is not allowed\. Use null coalesce operator if applicable or consider using long ternary\.#'
# \PHPStan\Rules\DisallowedConstructs\DisallowedEmptyRule
- '#Construct empty\(\) is not allowed\. Use more strict comparison\.#'
- '#Method [\w\\:]+_data_provider\(\) return type has no value type specified in iterable type#'
- message: '#Method CuyZ\\Valinor\\MapperBuilder::withCache\(\) has parameter \$cache with generic interface Psr\\SimpleCache\\\CacheInterface but does not specify its types: EntryType#'
path: src/MapperBuilder.php
stubFiles:
- qa/PHPStan/Stubs/Psr/SimpleCache/CacheInterface.stub
tmpDir: var/cache/phpstan