You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/OpenApiType.php
+7-1
Original file line number
Diff line number
Diff line change
@@ -174,13 +174,19 @@ public static function resolve(string $context, array $definitions, ParamTagValu
174
174
}
175
175
176
176
if ($nodeinstanceof ArrayTypeNode) {
177
+
Logger::error($context, "The 'TYPE[]' syntax for arrays is forbidden due to ambiguities. Use 'list<TYPE>' for JSON arrays or 'array<string, TYPE>' for JSON objects instead.");
Logger::error($context, "The 'array<TYPE>' syntax for arrays is forbidden due to ambiguities. Use 'list<TYPE>' for JSON arrays or 'array<string, TYPE>' for JSON objects instead.");
188
+
}
189
+
184
190
if ($node->genericTypes[0] instanceof IdentifierTypeNode && $node->genericTypes[0]->name === 'empty') {
185
191
returnnewOpenApiType(
186
192
context: $context,
@@ -203,8 +209,8 @@ public static function resolve(string $context, array $definitions, ParamTagValu
0 commit comments