3 ms·
PHP Static Analysis Tool (https://github.com/phpstan/phpstan https://github.com/phpstan/phpstan) is pretty good at surfacing that kind of thing.
by n1c 8y ago
PHP Static Analysis Tool (https://github.com/phpstan/phpstan https://github.com/phpstan/phpstan) is pretty good at surfacing that kind of thing.
- bunnybender 8y agoPhan (https://github.com/phan/phan https://github.com/phan/phan) is another one. Other potentially useful tools: - PHP_CodeSniffer (https://github.com/squizlabs/PHP_CodeSniffer https://github.com/squizlabs/PHP_CodeSniffer) - GrumPHP (https://github.com/phpro/grumphp https://github.com/phpro/grumphp) - PHP Mess Detector (https://phpmd.org/ https://phpmd.org/)
- DCoder 8y agoThere's also Vimeo's Psalm [0]. [0]: https://github.com/vimeo/psalm https://github.com/vimeo/psalm