-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
27 lines (25 loc) · 1.13 KB
/
phpstan.neon.dist
File metadata and controls
27 lines (25 loc) · 1.13 KB
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
includes:
- ./vendor/larastan/larastan/extension.neon
- phpstan-baseline.neon
parameters:
level: 5
paths:
- src
- config
- database/migrations/create_permission_tables.php.stub
- database/migrations/add_teams_fields.php.stub
tmpDir: build/phpstan
checkOctaneCompatibility: true
ignoreErrors:
- '#Unsafe usage of new static#'
# wildcard permissions:
- '#Call to an undefined method Illuminate\\Database\\Eloquent\\Model::getWildcardClass#'
- '#Call to an undefined method Illuminate\\Database\\Eloquent\\Model::getAllPermissions#'
# PermissionRegistrar accesses $roles on generic Model:
- '#Access to an undefined property Illuminate\\Database\\Eloquent\\Model::\$roles#'
# instanceof checks that are always false/true in specific trait contexts are intentional:
-
identifier: instanceof.alwaysFalse
path: src/Traits/HasPermissions.php
# unreachable code in trait contexts is intentional — traits are used in multiple model contexts:
- '#Unreachable statement - code above always terminates#'