forked from mineadmin/MineAdmin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon.dist
19 lines (19 loc) · 896 Bytes
/
phpstan.neon.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Magic behaviour with __get, __set, __call and __callStatic is not exactly static analyser-friendly :)
# Fortunately, You can ingore it by the following config.
#
# vendor/bin/phpstan analyse app --memory-limit 200M -l 0
#
parameters:
reportUnmatchedIgnoredErrors: false
excludePaths:
- tests/
ignoreErrors:
- '#Static call to instance method Hyperf\\HttpServer\\Router\\Router::[a-zA-Z0-9\\_]+\(\)#'
- '#Static call to instance method Hyperf\\DbConnection\\Db::[a-zA-Z0-9\\_]+\(\)#'
- '#Constant BASE_PATH not found.#'
- '#Call to an undefined static method App\\Model.*#'
- '#Call to an undefined static method T of Hyperf\\.*#'
- '#.with no value type specified in iterable type array.*#'
- '#.return type specified.*#'
- '#Access to an undefined property.*#'
- '#Call to an undefined static method App\\Kernel\\Casbin\\Rule\\Rule::getModel\(\)#'