Drupal 9: Running PHPStan On Drupal Custom Modules
[ad_1] PHPStan is a great command line tool for looking at how your PHP code will run without actually running it. It’s great for finding potential bugs that you wouldn’t have otherwise discovered using other tools or through unit testing. With regards to Drupal projects there is a little problem in that PHPStan doesn’t know how to interpret Drupal plugins, entities, controllers or all the other Drupal architecture that goes