forked from Treblle/laravel-api-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
26 lines (21 loc) · 1.05 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
parameters:
# The level 9 is the highest level
level: 8
reportMaybesInPropertyPhpDocTypes: false
checkMissingIterableValueType: false
checkOctaneCompatibility: false
paths:
- app
excludePaths:
# - app/Nova/*
# - app/Http/Livewire/*
ignoreErrors:
- '#is not allowed to extend.#'
- '#Short ternary operator is not allowed. Use null coalesce operator if applicable or consider using long ternary.#'
- '#has a nullable return type declaration.#'
- '#has parameter \$[a-zA-Z]+ with null as default value.#'
# - '#Dynamic call to static method.#'
# - '#has parameter \$[a-zA-Z]+ with default value.#'
# - '#has parameter \$[a-zA-Z]+ with a nullable type declaration.#'
# - '#Parameter \#[0-9] \$column of method Illuminate\\Database\\Eloquent\\Builder\<Illuminate\\Database\\Eloquent\\Model\>\:\:whereIn\(\) expects string, Illuminate\\Database\\Query\\Expression given.#'
# - '#is protected, but since the containing class is final, it can be private.#'