-
-
Couldn't load subscription status.
- Fork 48
Open
Labels
Description
Bug Report
| Q | A |
|---|---|
| BC Break | yes |
| Library Version | 0.3.33 |
| PHP version | 8.1.28 |
Summary
IsAbstract() finds classes that are not abstract
Apparently, the bug was added on this commit
Current behavior
App\MyClass has 1 violations
should have a name that matches Abstract* because we want to prefix abstract classes
How to reproduce
Add the following rule:
Rule::allClasses()
->that(new IsAbstract())
->should(new HaveNameMatching('Abstract*'))
->because('we want to prefix abstract classes');
And create a class like:
final class MyClass
{
}
Expected behavior
No errors reported
sukei