Skip to content

Commit 110a37e

Browse files
chore: cs fix
1 parent 1d65512 commit 110a37e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/RootFieldsResolver.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private function delegateToExecute(Schema $schema, OperationDefinitionNode $oper
6060
try {
6161
/// We need to clone all fragments and operation to make sure it can not be mutated by delegator.
6262
$delegateOperation = $operation->cloneDeep();
63-
$delegateFragments = array_map(fn(FragmentDefinitionNode $fragment) => $fragment->cloneDeep(), $fragments);
63+
$delegateFragments = array_map(fn (FragmentDefinitionNode $fragment) => $fragment->cloneDeep(), $fragments);
6464

6565
/// Add typename for detecting object type of interface or union
6666
SelectionSet::addTypename($delegateOperation->getSelectionSet());
@@ -97,7 +97,7 @@ private function resolve(ResolveInfo $info): Promise
9797

9898
$promise = $this->delegatedPromises[$info->operation];
9999

100-
return $promise->then(fn(ExecutionResult $result) => $this->accessResultByPath($info->path, $result));
100+
return $promise->then(fn (ExecutionResult $result) => $this->accessResultByPath($info->path, $result));
101101
}
102102

103103
private function prepareTypeResolver(Type $type): void

tests/BadExecutionDelegator.php

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
final readonly class BadExecutionDelegator implements ExecutionDelegatorInterface
1515
{
16-
1716
public function delegate(Schema $executionSchema, OperationDefinitionNode $operation, array $fragments = [], array $variables = []): Promise
1817
{
1918
throw new \RuntimeException('Bad execution delegator');

0 commit comments

Comments
 (0)