Here are a couple of new tools in addition to previously mentioned PHPStan:
- Psalm by Vimeo. The cool thing about this static analyzer is that it supports both PHP 5.6 and PHP 7, unlike PHPStan which requires PHP 7. (Yeah, I know PHP 5.6 has reached the end of its active support a while back, but there are still quite a few projects around using it.) Additionally, Psalm is easy to control via the XML configuration file, much like PHPUnit and PHP CodeSniffer.
- Phan. This one is a bit trickier to install, as it requires some PHP extensions that I’ve never heard about (like PHP AST).