Skip to content

Commit

Permalink
add missing exception imports
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Feb 15, 2025
1 parent 9c2e44c commit 0099f82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Generator/Client/LanguageBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ private function getOperations(array $operations, DefinitionsInterface $definiti
$exceptionImports = [];
if ($throwSchema instanceof PropertyTypeAbstract) {
$this->resolveImport($throwSchema, $exceptionImports);
foreach ($exceptionImports as $file => $class) {
$imports[$file] = $class;
}
}

$exceptionType = $this->newType($throwSchema, false, $definitions, Type\GeneratorInterface::CONTEXT_CLIENT | Type\GeneratorInterface::CONTEXT_RESPONSE);
Expand Down

0 comments on commit 0099f82

Please sign in to comment.