thinkphp5.1phpstan配置

编程

./phpstan.neon

# 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 application --memory-limit 200M -l 0

#

parameters:

ignoreErrors:

- "#Static call to instance method think\[a-zA-Z0-9]::[a-zA-Z0-9\_]+()#"

- "#Result of.+method|function.+(void) is used#"

scanDirectories:

- thinkphp

bootstrapFiles:

- thinkphp/base.php

以上是 thinkphp5.1phpstan配置 的全部内容, 来源链接: utcz.com/z/518282.html

回到顶部