diff --git a/src/Generator/Schema.php b/src/Generator/Schema.php index 325f2e3..49f5458 100644 --- a/src/Generator/Schema.php +++ b/src/Generator/Schema.php @@ -77,7 +77,7 @@ public static function generate(string $name, string $namespace, string $classNa ); if (is_string($property->type)) { if ($property->type === 'array' && $property->items instanceof OpenAPiSchema && array_key_exists(spl_object_hash($property->items), $schemaClassNameMap)) { - $docBlock[] = '@var array<' . $namespace . '\\' . $schemaClassNameMap[spl_object_hash($property->items)] . '>'; + $docBlock[] = '@var array<\\' . $namespace . '\\' . $schemaClassNameMap[spl_object_hash($property->items)] . '>'; } $propertyStmt->setType(str_replace([ 'integer',