-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathphpstan.neon
More file actions
33 lines (26 loc) · 1.08 KB
/
phpstan.neon
File metadata and controls
33 lines (26 loc) · 1.08 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
28
29
parameters:
level: 8
paths:
- src
- tests
# Ignore common Laravel/testing patterns
ignoreErrors:
- '#Access to an undefined property [a-zA-Z0-9\\_]+::\$[a-zA-Z0-9_]+#'
- '#Cannot access offset .+ on Illuminate\\Contracts\\Foundation\\Application#'
- '#Cannot call method .+ on Illuminate\\Foundation\\Application\|null#'
- '#Offset .+ does not exist on Illuminate\\Foundation\\Application\|null#'
- '#Parameter .+ expects .+, Illuminate\\Foundation\\Application\|null given#'
- '#Dead catch - Throwable is never thrown in the try block#'
- '#Unreachable statement - code above always terminates#'
- '#Cannot call method .+ on class-string\|object#'
- '#Possibly invalid array key type#'
- '#Negated boolean expression is always true#'
-
identifier: missingType.iterableValue
# Bootstrap for Laravel
bootstrapFiles:
- vendor/autoload.php
# Exclude vendor and build directories
excludePaths:
- vendor/*
- build/*