thinkphp5.1 phpstan配置

限于喜欢 提交于 2020-08-12 08:35:00

参考这篇 https://my.oschina.net/u/2266306/blog/4428395

然后改 ./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
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!