vanilla/garden-container

Rule inheritance not working with subclass in the middle

charrondev opened this issue · 0 comments

To reproduce

  1. Create class Db
  2. Create class PdoDb extends Db
  3. Create class ExtendedPdoDb extends PdoDb
  4. Add a container rule for Db with inherit => true.
  5. Fetch ExtendedPdoDb from the container.
  6. 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.