Skip to content

Commit

Permalink
Prevent infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
kubk committed Feb 12, 2023
1 parent d43bcfe commit 1238e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Language/Dart/DartGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private function getDartTypeFromPhp(PhpTypeInterface $type, DtoType $dto, DtoLis
$result = $this->handleUnknownType($type, $dto, $dtoList);

if ($result instanceof PhpTypeInterface) {
return $this->getDartTypeFromPhp($type, $dto, $dtoList);
return $this->getDartTypeFromPhp($result, $dto, $dtoList);
}

return $result;
Expand Down

0 comments on commit 1238e95

Please sign in to comment.