Skip to content

Commit

Permalink
fix(graphql-printer): Directive filters independent from `Settings::i…
Browse files Browse the repository at this point in the history
…sPrintDirectiveDefinitions()`.
  • Loading branch information
LastDragon-ru committed May 1, 2024
1 parent c711195 commit 628c29a
Show file tree
Hide file tree
Showing 2 changed files with 227 additions and 137 deletions.
3 changes: 1 addition & 2 deletions packages/graphql-printer/src/Misc/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,7 @@ public function isDirectiveDefinitionAllowed(string $directive): bool {

// Allowed?
$settings = $this->getSettings();
$isAllowed = $settings->isPrintDirectiveDefinitions()
&& $this->isDirectiveAllowed($directive);
$isAllowed = $this->isDirectiveAllowed($directive);

if ($isAllowed) {
$filter = $settings->getDirectiveDefinitionFilter();
Expand Down

0 comments on commit 628c29a

Please sign in to comment.