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 7e581e6 + 6c219f0 commit 703aea3Copy full SHA for 703aea3
src/SDK/Language/Go.php
@@ -138,7 +138,7 @@ public function getFiles(): array
138
*/
139
public function getTypeName(array $parameter, array $spec = []): string
140
{
141
- if (str_contains($parameter['description'], 'Collection attributes') || str_contains($parameter['description'], 'List of attributes')) {
+ if (str_contains($parameter['description'] ?? '', 'Collection attributes') || str_contains($parameter['description'] ?? '', 'List of attributes')) {
142
return '[]map[string]any';
143
}
144
return match ($parameter['type']) {
0 commit comments