We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug Description AFAICS PHPat does not handle interfaces extending other interfaces correctly.
If a rule requires interfaces to extend a specific interface, even interfaces that fulfill the requirement are reported.
Note that interfaces may extend multiple other interfaces, and listing only one of them after shouldExtend() needs to work in that case.
shouldExtend()
Additional context
ValueObjectInterface
class MyArchTest { public function testValueObjectInterfacesExtendBaseInterface(): BuildStep { return PHPat::rule() ->classes(Selector::classname('/ValueObjectInterface$/', regex: true)) ->excluding(Selector::classname(ValueObjectInterface::class)) ->shouldExtend() ->classes(Selector::classname(ValueObjectInterface::class)) ->because('Value object interfaces must extend ValueObjectInterface'); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Description
AFAICS PHPat does not handle interfaces extending other interfaces correctly.
If a rule requires interfaces to extend a specific interface, even interfaces that fulfill the requirement are reported.
Note that interfaces may extend multiple other interfaces, and listing only one of them after
shouldExtend()
needs to work in that case.Additional context
ValueObjectInterface
somewhereValueObjectInterface
somewhere that extendValueObjectInterface
ValueObjectInterface
in below test caseThe text was updated successfully, but these errors were encountered: