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 c64a81f commit 90194c4
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
Loading

0 comments on commit 90194c4

Please sign in to comment.