mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-24 22:06:04 +03:00
Improve comparison in ReferenceExecutor
This commit is contained in:
parent
bdbb30c604
commit
e344c8a441
@ -153,7 +153,7 @@ class ReferenceExecutor implements ExecutorImplementation
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (! $operation) {
|
if ($operation === null) {
|
||||||
if ($operationName) {
|
if ($operationName) {
|
||||||
$errors[] = new Error(sprintf('Unknown operation named "%s".', $operationName));
|
$errors[] = new Error(sprintf('Unknown operation named "%s".', $operationName));
|
||||||
} else {
|
} else {
|
||||||
@ -165,7 +165,7 @@ class ReferenceExecutor implements ExecutorImplementation
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
$variableValues = null;
|
$variableValues = null;
|
||||||
if ($operation) {
|
if ($operation !== null) {
|
||||||
[$coercionErrors, $coercedVariableValues] = Values::getVariableValues(
|
[$coercionErrors, $coercedVariableValues] = Values::getVariableValues(
|
||||||
$schema,
|
$schema,
|
||||||
$operation->variableDefinitions ?: [],
|
$operation->variableDefinitions ?: [],
|
||||||
|
Loading…
Reference in New Issue
Block a user