We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0c5126d + 365ca5f commit 5a14c30Copy full SHA for 5a14c30
src/Generator/Schema.php
@@ -77,7 +77,7 @@ public static function generate(string $name, string $namespace, string $classNa
77
);
78
if (is_string($property->type)) {
79
if ($property->type === 'array' && $property->items instanceof OpenAPiSchema && array_key_exists(spl_object_hash($property->items), $schemaClassNameMap)) {
80
- $docBlock[] = '@var array<' . $namespace . '\\' . $schemaClassNameMap[spl_object_hash($property->items)] . '>';
+ $docBlock[] = '@var array<\\' . $namespace . '\\' . $schemaClassNameMap[spl_object_hash($property->items)] . '>';
81
}
82
$propertyStmt->setType(str_replace([
83
'integer',
0 commit comments