Skip to content

Phpstan

since 4.1 为了在项目中增加 phpstan 的静态检测

安装

Plaintext
composer require poppy/ext-phpstan 4.2.*

~/phpstan.neon 中增加

Plaintext
includes:
    - vendor/poppy/ext-phpstan/extension.neon

运行

Bash
$ phpstan analyse -c phpstan.neon