Skip to content

Remove dead code left over from the legacy audit - #1052

Merged
mglaman merged 1 commit into
mainfrom
cleanup/audit-dead-code
Sep 9, 2026
Merged

Remove dead code left over from the legacy audit#1052
mglaman merged 1 commit into
mainfrom
cleanup/audit-dead-code

Conversation

@mglaman

@mglaman mglaman commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Closes #1050. Dead code only, no behavior change and no release-note entry.

What changed

  • PluginManagerInspectionRule: the "%s must override __construct if using YAML plugins." branch is gone, along with its pluginManagerInspection.constructorOverrideMissing identifier. Since Align legacy rules and reflections with current PHPStan API conventions #1027 the rule returns early unless the class declares its own constructor, and a class that declares its own constructor is always the declaring class, so the branch could not fire. The YAML inspection now takes only the constructor node it reads.
  • DrupalAutoloader: entity_test_update is dropped from the ignored install files. The module has no .install file on 10.4.x, 11.3.x, or 11.4.x.
  • ExtensionDiscovery: the no_transitions_css skip is gone. The module no longer exists anywhere in core on 10.4.x or later.

Checked each module against the drupal/core tree on GitHub for every supported branch before removing.

Testing

Full suite, self-analysis, and phpcs are green.

🤖 Generated with Claude Code

The "must override __construct" branch in PluginManagerInspectionRule
cannot fire: the rule returns early unless the class declares its own
constructor, and then the class is always the declaring class. The
entity_test_update install-file ignore and the no_transitions_css skip
guard modules that have no .install file or no longer exist in any
supported Drupal core version.

Closes #1050

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@mglaman
mglaman merged commit b8e7b15 into main Sep 9, 2026
19 of 20 checks passed
@mglaman
mglaman deleted the cleanup/audit-dead-code branch September 9, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove dead code left over from the legacy audit

1 participant