Skip to content

Commit 5b53536

Browse files
committed
Fix value passed to DisableIntrospection
The constructor value passed to `GraphQL\Validator\Rules\DisableIntrospection` must be `int 0` to enable intropection.
1 parent b6fe3ff commit 5b53536

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/GraphQl/Query/QueryComplexityLimiter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function __construct(
6161
public function execute(): void
6262
{
6363
DocumentValidator::addRule(new QueryComplexity($this->queryComplexity));
64-
DocumentValidator::addRule(new DisableIntrospection($this->introspectionConfig->isIntrospectionDisabled()));
64+
DocumentValidator::addRule(new DisableIntrospection((int) $this->introspectionConfig->isIntrospectionDisabled()));
6565
DocumentValidator::addRule(new QueryDepth($this->queryDepth));
6666
}
6767
}

0 commit comments

Comments
 (0)