Rule inheritance not working with subclass in the middle
charrondev opened this issue · 0 comments
charrondev commented
To reproduce
- Create class
Db
- Create class
PdoDb extends Db
- Create class
ExtendedPdoDb extends PdoDb
- Add a container rule for
Db
withinherit => true
. - Fetch
ExtendedPdoDb
from the container. - See that rule doesn't apply.
Expected Results
Inherited rules should apply to all children.
Interestingly this would work if the base Db
was an interface instead of a class/abstract class.