forked from NamelessMC/Nameless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
22 lines (22 loc) · 838 Bytes
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
parameters:
level: 4
paths:
- ./
excludePaths:
- cache/
- vendor/
# Ignore notices which are thrown due how nameless is written
ignoreErrors:
# prodecural programming :^)
- '#might not be defined#'
- '#Constant#'
- '#Undefined variable:#'
- '#Access to an undefined property object::#'
# because php is dumb
- '#Call to an undefined method ReflectionType::getName\(\).#'
- '#Call to an undefined method ReflectionType::isBuiltin\(\).#'
# DB::first() has been checked beforehand with DB::count() - probably need a better long term solution!
-
message: '#Cannot access property \$id on object\|false.#'
path: modules/Core/pages/panel/users_reports.php
reportUnmatchedIgnoredErrors: false