-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathphpstan.neon
34 lines (34 loc) · 1.22 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
27
28
29
30
31
32
33
34
parameters:
level: max
bootstrapFiles:
- ./pre_init.php
excludePaths:
- ./tests/*
- ./vendor/*
- ./data/*
- ./public/*
- ./assets/*
fileExtensions:
- php
paths:
- ./src/
- ./config/
- ./bin/
- ./public/
ignoreErrors:
- '#iterable type (array|PDOStatement|iterable)#'
- '#Property (.+) \(string\) does not accept mixed.#'
- '#Cannot cast mixed to string.#'
- '#Parameter \#\d+ .+ of function .+ expects .+, mixed given.#'
- '#Method .+ should return .+ but returns mixed.#'
- '#Cannot access offset .+ on mixed.#'
- '#Cannot cast mixed to .+#'
- '#Argument of an invalid type mixed supplied for foreach, only iterables are supported.#'
- '#Parameter \#\d+ .+ of .+ expects .+, mixed given.#'
- '#Cannot access property .+ on mixed.#'
- '#set_error_handler#'
- '#Property .+ does not accept mixed.#'
- '#Function .+ should return .+ but returns mixed.#'
- '#Cannot call method .+ on mixed.#'
- '#Parameter .+ of class .+ expects .+, mixed given.#'
- '#Binary operation .+ between .+ and mixed results in an error.#'