Feb 03, 2019
Testing your Drupal code base for deprecated code usage with PHPStan
Last month I wrote about writing better Drupal code with static analysis using PHPStan.
#phpstan #static analysis #drupal
Last month I wrote about writing better Drupal code with static analysis using PHPStan.
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.