-
-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
Bug Report
| Q | A |
|---|---|
| BC Break | no |
| Library Version | 0.2.0 |
| PHP version | 8.0 |
Summary
Do the Extend and Implement classes handle multiple levels of inheritance?
E.g. I have this line, to pick up Symfony form types:
$formTypeClassNames = Rule::allClasses()
->that(new ResideInOneOfTheseNamespaces('App\UI\Form'))
->andThat(new Implement(FormTypeInterface::class))
->should(new HaveNameMatching('*Type'))
->because('we want uniform form type naming');
However, it's ignoring all these classes, because they extend AbstractType which in turn implements FormTypeInterface
Expected behavior
I would expect the check to consider interfaces implemented, or classes extended from, all the way up the inheritance tree.
Thanks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels