Open davidcv91 opened 3 months ago
I have also found this to be unexpected matching and am compensating by specifically excluding everything else:
Rule::allClasses()
->that(new IsAbstract())
->that(new IsNotInterface())
->that(new IsNotTrait())
->that(new IsNotFinal())
->should(new HaveNameMatching('Abstract*'))
->because('we want to prefix abstract classes');
I'm trying to understand what problem #425 will have fixed and can't see it.
Bug Report
Summary
IsAbstract()
finds classes that are not abstractApparently, the bug was added on this commit
Current behavior
How to reproduce
Add the following rule:
And create a class like:
Expected behavior
No errors reported