-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpstan.neon
32 lines (31 loc) · 1.34 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
24
25
26
27
28
29
30
31
32
parameters:
level: 6
paths:
- app
- config
- database
- routes
- tests
excludePaths:
- app/Providers/MacrosServiceProvider.php
- app/Services/Pytlewski/PytlewskiFactory.php
stubFiles:
- phpstan.stub
checkModelProperties: true
checkPhpDocMissingReturn: true
checkModelAppends: true
ignoreErrors:
- '#^Method .* has parameter .* with generic class Illuminate\\Database\\Eloquent\\Relations\\Relation but does not specify its types: .*$#'
- '#^Parameter \#1 \$action of method Tests\\TestCase::assertActionUsesFormRequest\(\) expects .*, array{.*} given\.$#'
- '#^Property App\\Models\\\w+::\$\w+_date_(from|to) \(Carbon\\Carbon\|null\) does not accept string\.$#'
- '#^Unable to resolve the template type T in call to function Psl\\Regex\\first_match$#'
-
message: '#^Using nullsafe method call on non-nullable type App\\Enums\\Sex::Female\. Use -> instead\.$#'
path: database/factories/PersonFactory.php
tmpDir: .cache/phpstan
includes:
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
- vendor/larastan/larastan/extension.neon
- vendor/php-standard-library/phpstan-extension/extension.neon
- vendor/phpstan/phpstan-mockery/extension.neon
- vendor/phpstan/phpstan-phpunit/extension.neon