PHPStan: Find bugs without writing tests
I’m not saying you shouldn’t write tests. But you may find bugs without writing tests using PHPStan. At least, that is what they claim on their website. I took a relatively big PHP project I run commercially to see whether or not PHPStan would help me to find and fix bugs. In this post I will explain how this works. Adding PHPStan config file You need to add a “phpstan.neon” configuration file to the root of your project. Mine looks like this: ...