-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
phpstan.neon.dist
29 lines (21 loc) · 1.87 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
includes:
- vendor/larastan/larastan/extension.neon
parameters:
paths:
- app/
excludePaths:
- app/Mail/User/SummaryBackupMail.php
# So.. this is here because PHP CS Fixer keeps removing the docblock which makes PHPStan fail. Infuriating.
# Level 9 is the highest level
level: 8
ignoreErrors:
# This is a particularly nasty error and I couldn't manage to resolve it (nicely)..
- '#Cannot call method isoFormat\(\) on (.*)Carbon(.*)string#'
# Blanket ignores for specific PHPStan errors
- '#Generic type Illuminate\\Database\\Eloquent\\Relations\\HasOne<(.*)> in PHPDoc tag @return does not specify all template types of class Illuminate\\Database\\Eloquent\\Relations\\HasOne: TRelatedModel, TDeclaringModel#'
- '#Method App\\Models\\BackupTask::latestLog\(\) should return Illuminate\\Database\\Eloquent\\Relations\\HasOne<(.*)> but returns Illuminate\\Database\\Eloquent\\Relations\\HasOne<(.*)>#'
- '#Generic type Illuminate\\Database\\Eloquent\\Relations\\BelongsToMany<(.*)> in PHPDoc tag @return does not specify all template types of class Illuminate\\Database\\Eloquent\\Relations\\BelongsToMany: TRelatedModel, TDeclaringModel#'
- '#Method App\\Models\\BackupTask::notificationStreams\(\) should return Illuminate\\Database\\Eloquent\\Relations\\BelongsToMany<(.*)> but returns Illuminate\\Database\\Eloquent\\Relations\\BelongsToMany<(.*)>#'
- '#Method App\\Models\\NotificationStream::backupTasks\(\) should return Illuminate\\Database\\Eloquent\\Relations\\BelongsToMany<(.*)> but returns Illuminate\\Database\\Eloquent\\Relations\\BelongsToMany<(.*)>#'
- '#Method App\\Models\\Taggable::taggable\(\) should return Illuminate\\Database\\Eloquent\\Relations\\MorphTo<(.*)> but returns Illuminate\\Database\\Eloquent\\Relations\\MorphTo<(.*)>#'
treatPhpDocTypesAsCertain: false