thinkphp5.1 phpstan配置

07/13 16:01
阅读数 270

参考这篇 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
展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部