-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpstan.neon.dist
49 lines (45 loc) · 2.18 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
41
42
43
44
45
46
47
48
49
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon
- ./vendor/phpstan/phpstan-phpunit/extension.neon
- ./vendor/phpstan/phpstan-phpunit/rules.neon
- ./vendor/phpstan/phpstan-strict-rules/rules.neon
- ./vendor/shipmonk/phpstan-rules/rules.neon
parameters:
level: 9
paths:
- src
- tests
tmpDir: cache/phpstan/
checkMissingCallableSignature: true
checkUninitializedProperties: true
checkTooWideReturnTypesInProtectedAndPublicMethods: true
checkBenevolentUnionTypes: true
exceptions:
check:
missingCheckedExceptionInThrows: true
tooWideThrowType: true
implicitThrows: false
checkedExceptionClasses:
- ShipMonk\InputMapper\Runtime\Exception\RuntimeException
shipmonkRules:
forbidCheckedExceptionInCallable:
allowedCheckedExceptionCallables:
'ShipMonk\InputMapper\Runtime\CallbackMapper::__construct': 0
ignoreErrors:
-
message: '#Property [\w\\]++::\$provider is never read, only written\.#'
paths: [tests/**/Data/*.php]
-
message: '#has ShipMonk\\InputMapper\\Runtime\\Exception\\MappingFailedException in PHPDoc @throws tag but it''s not thrown.#'
paths: [tests/**/Data/*.php]
-
message: '#throws checked exception ShipMonk\\InputMapper\\Runtime\\Exception\\MappingFailedException but it''s missing from the PHPDoc @throws tag\.#'
paths: [tests/**/*Test.php]
-
message: "#^Method ShipMonkTests\\\\InputMapper\\\\Compiler\\\\Validator\\\\Array\\\\Data\\\\ListItemValidatorMapper\\:\\:map\\(\\) should return list\\<int\\<1, max\\>\\> but returns list\\<int\\>\\.$#"
count: 1
path: tests/Compiler/Validator/Array/Data/ListItemValidatorMapper.php
-
message: "#^Method ShipMonkTests\\\\InputMapper\\\\Compiler\\\\Validator\\\\Array\\\\Data\\\\ListItemValidatorWithMultipleValidatorsMapper\\:\\:map\\(\\) should return list\\<int\\<1, max\\>\\> but returns list\\<int\\>\\.$#"
count: 1
path: tests/Compiler/Validator/Array/Data/ListItemValidatorWithMultipleValidatorsMapper.php