mirror of
http://124.126.16.154:8888/singularity/hdk-skeleton.git
synced 2026-01-15 01:55:05 +08:00
26 lines
1.5 KiB
Plaintext
26 lines
1.5 KiB
Plaintext
# Magic behaviour with __get, __set, __call and __callStatic is not exactly static analyser-friendly :)
|
|
# Fortunately, You can ignore it by the following config.
|
|
#
|
|
# vendor/bin/phpstan analyse app --memory-limit 200M -l 0
|
|
#
|
|
parameters:
|
|
level: 6
|
|
reportUnmatchedIgnoredErrors: false
|
|
checkGenericClassInNonGenericObjectType: false
|
|
paths:
|
|
- app
|
|
- 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\\_]+\(\)#'
|
|
- '#Static call to instance method App\\Constants\\ErrorCode::getMessage\(\).#'
|
|
- '#Constant BASE_PATH not found#'
|
|
- '#Property [a-zA-Z0-9\\_]+::\$[a-zA-Z0-9]+ is never written, only read.#'
|
|
- '#Method [a-zA-Z0-9\\_]+::[a-zA-Z0-9_]+\(\) has parameter \$[a-zA-Z0-9_]+ with no value type specified in iterable type array.#'
|
|
- '#Method [a-zA-Z0-9\\_]+::[a-zA-Z0-9_]+\(\) has parameter \$[a-zA-Z0-9_]+ with no type specified.#'
|
|
- '#Template type [a-zA-Z0-9]+ of method [a-zA-Z0-9\\_]+::[a-zA-Z0-9_]+\(\) is not referenced in a parameter.#'
|
|
- '#Call to an undefined method Hyperf\\Database\\Query\\Builder::firstOrFail\(\).#'
|
|
- '#Call to an undefined method Hyperf\\Contract\\SessionInterface::isValidId\(\).#'
|
|
- '#Call to an undefined method LightSaml\\Model\\Protocol\\SamlMessage::setInResponseTo\(\).#'
|
|
- '#Class App\\Constants\\ErrorCode not found.#'
|
|
- '#Undefined variable: \$this#' |