Skip to content

Commit

Permalink
use any instead of interface{}
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Oct 14, 2023
1 parent 7a1f817 commit 97d1c84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Generator/Type/Go.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ protected function getMap(string $type): string

protected function getUnion(array $types): string
{
return 'interface{}';
return 'any';
}

protected function getIntersection(array $types): string
{
return 'interface{}';
return 'any';
}

protected function getGroup(string $type): string
Expand All @@ -111,7 +111,7 @@ protected function getGeneric(array $types): string

protected function getAny(): string
{
return 'interface{}';
return 'any';
}

protected function getNamespaced(string $namespace, string $name): string
Expand Down

0 comments on commit 97d1c84

Please sign in to comment.