Skip to main content
[2019-07-02]

Deprecation message support for PHPStan

#phpstan #drupal

The end of May brought two exciting releases for PHPStan and the PHPStan Deprecation Rules extension. With the version of PHPStan v0.11.8, descriptions added to the @deprecated tag can be parsed and returned in rule checks.

[2019-05-12]

A proper introduction to Drupal Check

#drupal #phpstan

You may have heard of Drupal Check. You may wonder what in the world it is or how it even came to be. I realized this went from an internal research and development task for a product, to open source contribution and then to an essential tool in the march toward Drupal 9.

[2019-01-08]

Writing better Drupal code with static analysis using PHPStan

#drupal #phpstan #static analysis

PHP is a loosely typed interpreted language. That means we cannot compile our scripts and find possible execution errors without doing explicit inspections of our code. It also means we need to rely on conditional type checking or using phpDoc comments to tell other devs or IDE what kind of value to expect.