Static Analysis with PHPStan

May 15, 2021

PHPStan is an excellent open-source static analysis tool. It's easy to add to your build and catches lots of bugs without writing a line of test code. This makes it especially useful for maintaining stability in older codebases which don't always have extensive test suites. I'll show you how to configure and run it, as well as some examples of subtle mistakes it will catch.