Skip to content

Commit

Permalink
fix(graphql-printer): Printer::process() will not throw `DirectiveD…
Browse files Browse the repository at this point in the history
…efinitionNotFound` (same as for a type).
  • Loading branch information
LastDragon-ru committed Mar 6, 2024
1 parent 551536e commit 3246647
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/graphql-printer/src/Printer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
use LastDragon_ru\LaraASP\GraphQLPrinter\Contracts\Printer as PrinterContract;
use LastDragon_ru\LaraASP\GraphQLPrinter\Contracts\Result;
use LastDragon_ru\LaraASP\GraphQLPrinter\Contracts\Settings;
use LastDragon_ru\LaraASP\GraphQLPrinter\Exceptions\DirectiveDefinitionNotFound;
use LastDragon_ru\LaraASP\GraphQLPrinter\Misc\Collector;
use LastDragon_ru\LaraASP\GraphQLPrinter\Misc\Context;
use LastDragon_ru\LaraASP\GraphQLPrinter\Misc\ResultImpl;
Expand Down Expand Up @@ -215,8 +214,6 @@ protected function process(
if ($directive) {
$block = $this->getBlock($context, $directive);
$printed[$name] = true;
} else {
throw new DirectiveDefinitionNotFound($name);
}
}
} else {
Expand Down

0 comments on commit 3246647

Please sign in to comment.