-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpstan.neon
23 lines (21 loc) · 1.13 KB
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
parameters:
level: max
checkMissingIterableValueType: false
paths:
- %currentWorkingDirectory%/src/
ergebnis:
classesAllowedToBeExtended:
- Symfony\Component\Console\Command\Command
- Ramsey\Collection\AbstractCollection
excludes_analyse:
- %currentWorkingDirectory%/src/Kernel.php
- %currentWorkingDirectory%/src/Migrations
- %currentWorkingDirectory%/tests
- %currentWorkingDirectory%/config
- %currentWorkingDirectory%/public
- %currentWorkingDirectory%/phpinsights.php
ignoreErrors:
- "#^Method App\\\\Model\\\\.* has a nullable return type declaration\\.$#" # Authorize nullable return type for App\Model
- "#^Method App\\\\Model\\\\.* has parameter .* with a nullable type declaration\\.$#" # Authorize nullable return type for App\Model
- "#^Method App\\\\Model\\\\.* has parameter .* with null as default value\\.$#" # Authorize nullable return type for App\Model
- "#^Constructor in App\\\\Model\\\\.* has parameter .* with default value\\.$#" # Authorize default value in construct for App\Model