Skip to content

Ignore legacy hook related attributes #945

@Berdir

Description

@Berdir

Feature request

Drupal maintains several hook related attributes for BC management. LegacyHook, LegacyRequirementsHook and LegacyModuleImplementsAlter. They were added in different minor versions and D12 is now removing the first again.

Managing this in phpstan is tedious because depending on the core version, either either complains that it doesn't exist (yet or not anymore) or it complains that ignoring said problem is a problem because it does exist.

Would it be possible to just completely skip these attributes and ignore them and whether or not they exist or not?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions