- Issue created by @joachim
Coder does not check for namespaces in PHP attributes -- this issue 🐛 Drupal.Classes.FullyQualifiedNamespace sniff doesn't work with attributes Active tried to add that to Drupal.Classes.FullyQualifiedNamespace and ran into problems because Drush code style specifically uses namespace in its command attribute classes.
However, being able to detect and fix fully-qualified classnames in attribute classes is a key part of upgrading plugin annotations to attributes.
Either:
- provide an additional sniff for FQCNs in attribute classes, which is not in the Drupal set, but can be used by module developers when upgrading their plugin classes
- use a config option in Drupal.Classes.FullyQualifiedNamespace that users can switch on to check and fix full namespaces in attributes.
Active
8.3
Review/Rules