-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphpstan.neon.dist
39 lines (38 loc) · 1.7 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
includes:
- phar://phpstan.phar/conf/config.levelmax.neon
- phar://phpstan.phar/conf/bleedingEdge.neon
- ./vendor/phpstan/phpstan-strict-rules/rules.neon
- ./vendor/phpstan/phpstan-phpunit/extension.neon
- ./vendor/phpstan/phpstan-phpunit/rules.neon
- ./vendor/shipmonk/phpstan-rules/rules.neon
parameters:
paths:
- src
- tests
tmpDir: cache/phpstan/
checkImplicitMixed: true
checkBenevolentUnionTypes: true
checkUninitializedProperties: true
checkMissingCallableSignature: true
checkTooWideReturnTypesInProtectedAndPublicMethods: true
reportAnyTypeWideningInVarTag: true
reportPossiblyNonexistentConstantArrayOffset: true
reportPossiblyNonexistentGeneralArrayOffset: true
shipmonkRules:
classSuffixNaming:
superclassToSuffixMapping:
\PHPUnit\Framework\TestCase: Test
\Symfony\Component\Console\Command\Command: Command
ignoreErrors:
-
# changes to void in new versions
message: '~Return type \(void\) of method ShipMonk\\Doctrine\\Migration\\CachingSqlLogger::log\(\) should be compatible with return type \(null\) of method Psr\\Log\\LoggerInterface::log\(\)~'
path: tests\CachingSqlLogger.php
reportUnmatched: false
count: 1
-
# changes to string|Stringable in new versions
message: '~Parameter #2 \$message \(string\|Stringable\) of method ShipMonk\\Doctrine\\Migration\\CachingSqlLogger::log\(\) should be contravariant with parameter \$message \(mixed\) of method Psr\\Log\\LoggerTrait::log\(\)~'
path: tests\CachingSqlLogger.php
reportUnmatched: false
count: 1