Skip to content

Commit 703aea3

Browse files
Merge pull request #951 from appwrite/feat-go-fix
fix(go): bug fix
2 parents 7e581e6 + 6c219f0 commit 703aea3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SDK/Language/Go.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function getFiles(): array
138138
*/
139139
public function getTypeName(array $parameter, array $spec = []): string
140140
{
141-
if (str_contains($parameter['description'], 'Collection attributes') || str_contains($parameter['description'], 'List of attributes')) {
141+
if (str_contains($parameter['description'] ?? '', 'Collection attributes') || str_contains($parameter['description'] ?? '', 'List of attributes')) {
142142
return '[]map[string]any';
143143
}
144144
return match ($parameter['type']) {

0 commit comments

Comments
 (0)