PHP - static type checking a-la PhpStorm

后端 未结 2 1503
傲寒
傲寒 2021-02-02 16:23

I am a strongly-typed language supporter but I am working on a big PHP project.

I have been using PhpStorm and I love the extra type hinting you can provide, with commen

2条回答
  •  终归单人心
    2021-02-02 17:18

    For static code analysis, specifically helping with type error detection, one can use tools like

    • https://github.com/scrutinizer-ci/php-analyzer
    • https://github.com/colder/phantm/
    • https://github.com/sebastianbergmann/hhvm-wrapper/
    • https://github.com/troelskn/php-tracer-weaver
    • php -l

    PHPCS aka PHP_CodeSniffer is Coding Standard checker, not really helpful with type error detection.

提交回复
热议问题