task: #3637458 Add PHP attribute discovery to the Style and StylesGroup plugin managers

Issue: https://www.drupal.org/i/3637458

phpstan-drupal 2.4.0 fails with pluginManager.attributeDiscoveryMissing on both plugin managers.

  • Adds src/Attribute/Style.php and src/Attribute/StylesGroup.php.
  • On Drupal 10.2+ (core has AttributeInterface) the managers pass the attribute class plus the annotation class; on older cores (the branch still declares ^9.3) annotations only, with an inline @phpstan-ignore on that legacy path.
  • Plugins keep their annotations.

Verified: phpstan clean locally on Drupal 11.4.11.

AI-Generated: Yes

Checkpoints:

  • File an issue
  • Addition/Change/Update/Fix
  • Testing to ensure no regression
  • Automated unit testing coverage
  • Automated functional testing coverage
  • UX/UI designer responsibilities
  • Readability
  • Accessibility
  • Performance
  • Security
  • Developer Documentation
  • User Guide Documentation
  • Reviewed by human
  • Code review by maintainers
  • Full testing and approval
  • Credit contributors
  • Review with the product owner
  • Release notes snippet
  • Release

🤖 Generated with Claude Code

Edited by Rajab Natshah

Merge request reports

Loading
Loading