In less than 12 months, Drupal 7 will be end-of-life and no longer supported. Plan your upgrade to Drupal 10 now.

The lowest level is better than no level

Yesterday's email introduced the different levels that PHPStan offers and which you may want to use on your codebase.

In the same way as having a single test is better than none, even if you run PHPStan at the lowest level, it's better than not running it at all.

Level 0 includes:

Basic checks, unknown classes, unknown functions, unknown methods called on $this, wrong number of arguments passed to those methods and functions, always undefined variables

P.S. If you want to utilise PHPStan and static analysis on your development team and get fewer bugs, I have availability for team coaching. I'll show you how!

- Oliver

P.S. Do you need immediate access to an expert Drupal Developer? With my Drupal development subscription, make unlimited requests for a fixed monthly price in less time than posting to a job board!

Was this useful?

Sign up here and get more like this delivered straight to your inbox every day.

About me

Picture of Oliver

I'm an Acquia-certified Drupal Triple Expert with 17 years of experience, an open-source software maintainer and Drupal core contributor, public speaker, live streamer, and host of the Beyond Blocks podcast.