Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia committed Aug 24, 2020
1 parent 9d73e40 commit 79d5c74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Executor/ReferenceExecutor.php
Original file line number Diff line number Diff line change
Expand Up @@ -506,9 +506,8 @@ function ($results, $responseName) use ($path, $parentType, $rootValue, $fields)
* by calling its resolve function, then calls completeValue to complete promises,
* serialize scalars, or execute the sub-selection-set for objects.
*
* @param mixed $rootValue
* @param ArrayObject<FieldNode> $fieldNodes
* @param array<string|int> $path
* @param mixed $rootValue
* @param array<string|int> $path
*
* @return array<mixed>|Throwable|mixed|null
*/
Expand Down Expand Up @@ -658,14 +657,15 @@ private function completeValueCatchingError(

$promise = $this->getPromise($completed);
if ($promise !== null) {
return $promise->then(null, function ($error) use ($fieldNodes, $path, $returnType): void {
return $promise->then(null, function ($error) use ($fieldNodes, $path, $returnType) : void {
$this->handleFieldError($error, $fieldNodes, $path, $returnType);
});
}

return $completed;
} catch (Throwable $err) {
$this->handleFieldError($err, $fieldNodes, $path, $returnType);

return null;
}
}
Expand Down

0 comments on commit 79d5c74

Please sign in to comment.