Do static code analysis with PHPStan
PHPStan last version seems better at running without a PSR-4 autoloader, allowing us to start using phpstan before #6048 is done.
PHPStan is a tool which checks problems in PHP code by looking at the compiled code.
Edited by bmortier