mirror of
https://github.com/retailcrm/graphql-php.git
synced 2025-02-06 15:59:24 +03:00
Fixed broken 5.4 build
This commit is contained in:
parent
bc4b990946
commit
e7cde5ecf3
@ -94,7 +94,9 @@ class QueryComplexity extends AbstractQuerySecurity
|
||||
},
|
||||
NodeKind::OPERATION_DEFINITION => [
|
||||
'leave' => function (OperationDefinitionNode $operationDefinition) use ($context, &$complexity) {
|
||||
if (empty($context->getErrors())) {
|
||||
$errors = $context->getErrors();
|
||||
|
||||
if (empty($errors)) {
|
||||
$complexity = $this->fieldComplexity($operationDefinition, $complexity);
|
||||
|
||||
if ($complexity > $this->getMaxQueryComplexity()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user