Matt Glaman: phpstan-drupal 0.12.15: Improved detection of deprecated service usage

I have some exciting news to share for phpstan-drupal! With the 0.12.15 release, the ability to detect and report usages of deprecated services should have full coverage! Previously, phpstan-drupal only detected if you used a method on a deprecated service. And that happened to be if the service was fetched from an object implementing ContainerInterface. That meant calls to Drupal::service were left uncovered – even though it calls self::getContainer->get() (I thought it would “just work,” but it did not.)

Go to Source