Skip to main content

Hack & Play: Detecting deprecated annotation usages

Drupal core deprecated an annotation property in Drupal 8 and users upgrading to Drupal 9 are experiencing issues. I'm going to see if we can write a PHPStan rule to check for usages of deprecated annotation properties.

Change record: Plugins now use the 'context_definitions' key to define their contexts

Related issue in the Upgrade Status module: https://www.drupal.org/project/upgrade_status/issues/3161052