-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
Copy pathphpstan.neon
28 lines (23 loc) · 933 Bytes
/
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
includes:
- vendor/larastan/larastan/extension.neon
- vendor/nesbot/carbon/extension.neon
- vendor/thecodingmachine/phpstan-safe-rule/phpstan-safe-rule.neon
parameters:
paths:
- app
- database/factories
- database/seeders
- routes
inferPrivatePropertyTypeFromConstructor: true
treatPhpDocTypesAsCertain: false
excludePaths:
- */app/Domains/Vault/ManageCalendar/Web/ViewHelpers/VaultCalendarIndexViewHelper.php
- */app/Domains/Contact/DavClient/Services/Utils/Dav/ServiceUrlQuery.php
- */app/Models/Contact.php
level: 5
ignoreErrors:
# Global ignore of the "Access to an undefined property"
- '#Access to an undefined property .*\.#'
# larastan false positive
- path: */app/Helpers/helpers.php
message: '#Function readVersion\(\) never returns null so it can be removed from the return type\.#'