-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpstan.neon
More file actions
27 lines (26 loc) · 1 KB
/
phpstan.neon
File metadata and controls
27 lines (26 loc) · 1 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
parameters:
level: 9
paths:
- src
- tests
- bin
excludePaths:
- vendor
treatPhpDocTypesAsCertain: false
tmpDir: var/cache/phpstan
parallel:
maximumNumberOfProcesses: 2
processTimeout: 300.0
ignoreErrors:
# Safe casts from mixed after type validation
- '#Cannot cast mixed to (int|float|string|bool)#'
- '#Cannot access offset#'
- '#Parameter .* expects array, mixed given#'
- '#does not accept array<.*mixed.*>#'
- '#expects array<string, mixed>, array<mixed, mixed> given#'
# SDL extension types (optional runtime dependency)
- '#(Constant|Function|Class) SDL_.*not found#'
- '#Parameter \$event .* has invalid type (\\)?SDL_Event#'
- '#Access to property .* on an unknown class (\\)?SDL_Event#'
- '#Instantiated class (\\)?SDL_Event not found#'
- '#Property .*::\$(texture|renderer|window) .* in isset\(\) is not nullable#'