diff --git a/src/Parser/Popo.php b/src/Parser/Popo.php index 30827efb..36d7ca88 100644 --- a/src/Parser/Popo.php +++ b/src/Parser/Popo.php @@ -100,7 +100,7 @@ protected function parseClass(string $className, DefinitionsInterface $definitio if ($type instanceof StructType) { $parent = $class->getParentClass(); if ($parent instanceof \ReflectionClass) { - $extends = $this->parseClass($parent->getName(), $definitions); + $extends = $this->parseClass($parent->getName(), $definitions, $context); if ($extends instanceof StructType) { $type->setExtends($this->getTypeName($parent, $context)); } @@ -340,7 +340,7 @@ private function parseRef(ReferenceType $type, DefinitionsInterface $definitions $reflection = new ReflectionClass($className); $type->setRef($this->getTypeName($reflection, $context)); - $this->parseClass($className, $definitions); + $this->parseClass($className, $definitions, $context); } catch (\ReflectionException $e) { // in this case the class does not exist } @@ -352,7 +352,7 @@ private function parseRef(ReferenceType $type, DefinitionsInterface $definitions try { $reflection = new ReflectionClass($className); $result[$key] = $this->getTypeName($reflection, $context); - $this->parseClass($className, $definitions); + $this->parseClass($className, $definitions, $context); } catch (\ReflectionException $e) { // in this case the class does not exist }