This repository has been archived by the owner on Jun 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathphpstan.neon
38 lines (30 loc) · 1.73 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
33
34
35
36
37
38
includes:
- ./vendor/nunomaduro/larastan/extension.neon
parameters:
paths:
- app
- database/factories
- database/seeders
- routes
inferPrivatePropertyTypeFromConstructor: true
excludePaths:
- */app/Domains/Vault/ManageCalendar/Web/ViewHelpers/VaultCalendarIndexViewHelper.php
level: 5
ignoreErrors:
# Global ignore of VCard properties access
- '#Access to an undefined property Sabre\\VObject\\Component\\VCard::\$.*\.#'
# Specific column loaded with DB::raw
- message: '#Access to an undefined property App\\Models\\Post::\$year\.#'
path: */app/Domains/Vault/ManageJournals/Web/ViewHelpers/JournalShowViewHelper.php
# unsearchable scout global method
- message: '#Call to an undefined method Illuminate\\Database\\Eloquent\\Relations\\HasMany<App\\Models\\Note>::unsearchable\(\)\.#'
path: */app/Models/Contact.php
- message: '#Call to an undefined method Illuminate\\Database\\Eloquent\\Relations\\HasMany<App\\Models\\Note>::unsearchable\(\)\.#'
path: */app/Models/Vault.php
- message: '#Call to an undefined method Illuminate\\Database\\Eloquent\\Relations\\HasMany<App\\Models\\Contact>::unsearchable\(\)\.#'
path: */app/Models/Vault.php
# larastan false positive with Collection::random
- message: '#Parameter \#1 \$number of method Illuminate\\Support\\Collection<int,.*>::random\(\) expects .*, Closure\(Illuminate\\Support\\Collection\): int.* given\.#'
path: */app/Domains/Vault/ManageVault/Web/ViewHelpers/VaultIndexViewHelper.php
# larastan needs to manage ->pivot properties
- '#Access to an undefined property App\\Models\\[^:]*::\$pivot\.#'