Skip to content

structarmed: use of classNode->isExtended needs implements ExtendedClassAwareRuleInterface #338

Description

@samsonasik

Existing code still implements RuleInterface

final readonly class InternalClassMustBeFinalRule implements RuleInterface

This should implements ExtendedClassAwareRuleInterface

Ref example

https://github.com/boundwize/structarmed/blob/ca1371237cc6fe3b41931e8314401921ea1c8f50/src/Rule/Rules/Class_/MustBeFinalRule.php#L15

see documentation

https://boundwize.github.io/structarmed/custom-rules-and-presets/#reading-usage-flags-in-a-custom-rule

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions