Drupal.Classes.FullyQualifiedNamespace doesn't pick up annotation classes

Created on 13 May 2024, 11 months ago

Problem/Motivation

Phpcbf made this change:

-#[\Drupal\computed_field\Attribute\ComputedField(id: 'reverse_entity_reference', label: new \Drupal\Core\StringTranslation\TranslatableMarkup('Reverse entity reference'), field_type: 'entity_reference')]
+#[\Drupal\computed_field\Attribute\ComputedField(id: 'reverse_entity_reference', label: new TranslatableMarkup('Reverse entity reference'), field_type: 'entity_reference')]

The TranslatableMarkup is extracted to a use statement, but not the attribute.

(The reason these are FQ classnames is I'd run Rector to convert annotation plugins to attributes.)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

8.3

Component

Coder Sniffer

Created by

🇬🇧United Kingdom joachim

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024