Skip to content

Commit

Permalink
Merge pull request #951 from appwrite/feat-go-fix
Browse files Browse the repository at this point in the history
fix(go): bug fix
  • Loading branch information
christyjacob4 authored Aug 20, 2024
2 parents 7e581e6 + 6c219f0 commit 703aea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SDK/Language/Go.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function getFiles(): array
*/
public function getTypeName(array $parameter, array $spec = []): string
{
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')) {
return '[]map[string]any';
}
return match ($parameter['type']) {
Expand Down

0 comments on commit 703aea3

Please sign in to comment.