-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon.dist
41 lines (38 loc) · 2.13 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
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
- tests/PHPStan/conditional.config.php
parameters:
level: max
paths:
- src
exceptions:
implicitThrows: false
check:
missingCheckedExceptionInThrows: true
tooWideThrowType: true
uncheckedExceptionClasses:
- LogicException
- Doctrine\DBAL\Types\ConversionException
- Nette\InvalidStateException
ignoreErrors:
-
message: "#^Parameter \\#1 \\$value \\(Nepada\\\\EmailAddress\\\\EmailAddress\\|string\\|null\\) of method Nepada\\\\EmailAddressDoctrine\\\\AbstractEmailAddressType\\:\\:convertToPHPValue\\(\\) should be contravariant with parameter \\$value \\(mixed\\) of method Doctrine\\\\DBAL\\\\Types\\\\Type\\:\\:convertToPHPValue\\(\\)$#"
count: 1
path: src/EmailAddressDoctrine/AbstractEmailAddressType.php
-
message: "#^Parameter \\#1 \\$value \\(Nepada\\\\EmailAddress\\\\EmailAddress\\|string\\|null\\) of method Nepada\\\\EmailAddressDoctrine\\\\AbstractEmailAddressType\\:\\:convertToDatabaseValue\\(\\) should be contravariant with parameter \\$value \\(mixed\\) of method Doctrine\\\\DBAL\\\\Types\\\\Type\\:\\:convertToDatabaseValue\\(\\)$#"
count: 1
path: src/EmailAddressDoctrine/AbstractEmailAddressType.php
- # conditional type narrowing
message: "#^Overwriting variable \\$value while changing its type from Nepada\\\\EmailAddress\\\\EmailAddress to string$#"
count: 1
path: src/EmailAddressDoctrine/AbstractEmailAddressType.php