diff --git a/src/Generators/AbstractTagGenerator.php b/src/Generators/AbstractTagGenerator.php index af4ebee..875617a 100644 --- a/src/Generators/AbstractTagGenerator.php +++ b/src/Generators/AbstractTagGenerator.php @@ -215,7 +215,7 @@ protected function generateOwnerTags() if ($reflection->isAbstract()) { return; } - if ($reflection instanceof Extension) { + if (Injector::inst()->get($this->className) instanceof Extension) { $owners = iterator_to_array($this->getOwnerClasses($className)); $owners[] = $this->className; $tagString = sprintf('\\%s $owner', implode("|\\", array_values($owners)));