forked from iamfarhad/laravel-audit-log
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
34 lines (31 loc) · 1.34 KB
/
phpstan.neon
File metadata and controls
34 lines (31 loc) · 1.34 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
30
31
32
33
34
includes:
- vendor/phpstan/phpstan-strict-rules/rules.neon
parameters:
level: 5
paths:
- src/
treatPhpDocTypesAsCertain: false
reportUnmatchedIgnoredErrors: false
ignoreErrors:
# Add specific error patterns to ignore if needed
- '#PHPDoc tag @var#'
-
message: '#Property [a-zA-Z0-9\\_\\$\\:\\ ]+ has no type specified.#'
reportUnmatched: false
-
message: '#Parameter \$[a-zA-Z0-9\\_]+ of (method|function) [a-zA-Z0-9\\_\\:\\(\\)]+ has no type specified.#'
reportUnmatched: false
-
message: '#(Method|Function) [a-zA-Z0-9\\_\\:\\(\\)]+ has no return type specified.#'
reportUnmatched: false
-
message: '#Call to an undefined static method Illuminate\\Support\\Facades\\Event::(fire|dispatch)\(\)#'
reportUnmatched: false
-
message: '#Call to an undefined static method Illuminate\\Support\\Facades\\DB::(statement|transaction|beginTransaction|commit|rollBack|insert|raw)\(\)#'
reportUnmatched: false
-
identifier: missingType.generics
reportUnmatched: false
- '#Construct empty\(\) is not allowed. Use more strict comparison.#'
- '#Dynamic call to static method Illuminate\\Database\\Query\\Builder::whereNotNull\(\)#'