/
phpstan.neon.dist
47 lines (44 loc) · 2.12 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
includes:
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/phpstan/phpstan-nette/extension.neon
- vendor/phpstan/phpstan-nette/rules.neon
- vendor/spaze/phpstan-disallowed-calls/extension.neon
- vendor/spaze/phpstan-disallowed-calls/disallowed-dangerous-calls.neon
- vendor/spaze/phpstan-disallowed-calls/disallowed-execution-calls.neon
- vendor/spaze/phpstan-disallowed-calls/disallowed-insecure-calls.neon
- vendor/spaze/phpstan-disallowed-calls/disallowed-loose-calls.neon
- tests/PHPStan/disallowedCalls.neon
- tests/PHPStan/shipmonk.neon
parameters:
level: max
paths:
- src
exceptions:
implicitThrows: false
check:
missingCheckedExceptionInThrows: true
tooWideThrowType: true
uncheckedExceptionClasses:
- LogicException
- Brick\PhoneNumber\PhoneNumberException
- Nette\InvalidStateException
ignoreErrors:
- # intended
message: '#Parameter \#1 \$value \(Brick\\PhoneNumber\\PhoneNumber\|string\|null\) of method Nepada\\PhoneNumberInput\\PhoneNumberInput::setDefaultValue\(\) should be contravariant with parameter#'
path: src/PhoneNumberInput/PhoneNumberInput.php
-
message: "#^Dead catch \\- Brick\\\\PhoneNumber\\\\PhoneNumberParseException is never thrown in the try block\\.$#"
count: 1
path: src/PhoneNumberInput/PhoneNumberInput.php
-
message: "#^Parameter \\#1 \\$s of static method Nette\\\\Utils\\\\Strings\\:\\:trim\\(\\) expects string, mixed given\\.$#"
count: 2
path: src/PhoneNumberInput/PhoneNumberInput.php
- # conditional type narrowing
message: "#^Overwriting variable \\$value while changing its type from string to Brick\\\\PhoneNumber\\\\PhoneNumber$#"
count: 1
path: src/PhoneNumberInput/PhoneNumberInput.php
- # conditional type narrowing
message: "#^Overwriting variable \\$value while changing its type from int to string$#"
count: 1
path: src/PhoneNumberInput/Validator.php