-
Notifications
You must be signed in to change notification settings - Fork 2
/
phpstan.neon.dist
34 lines (31 loc) · 1.19 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
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
- ./vendor/shipmonk/dead-code-detector/rules.neon
parameters:
phpVersion: 80100
paths:
- src
- tests
tmpDir: cache/phpstan/
checkImplicitMixed: true
checkBenevolentUnionTypes: true
checkUninitializedProperties: true
checkMissingCallableSignature: true
checkTooWideReturnTypesInProtectedAndPublicMethods: true
reportAnyTypeWideningInVarTag: true
reportPossiblyNonexistentConstantArrayOffset: true
reportPossiblyNonexistentGeneralArrayOffset: true
shipmonkRules:
enforceReadonlyPublicProperty:
enabled: false # it simplifies tests a bit
classSuffixNaming:
superclassToSuffixMapping:
\PHPUnit\Framework\TestCase: Test
ignoreErrors:
- '#^Unused ShipMonk\\Doctrine\\MySql\\Account\:\:__construct$#'
- '#^Unused ShipMonk\\Doctrine\\MySql\\User\:\:__construct$#'