|
60 | 60 | /** |
61 | 61 | * @phpstan-import-type FieldResolver from Executor |
62 | 62 | * @phpstan-import-type Path from ResolveInfo |
| 63 | + * |
63 | 64 | * @phpstan-type Fields ArrayObject<string, ArrayObject<int, FieldNode>> |
64 | 65 | */ |
65 | 66 | class ReferenceExecutor implements ExecutorImplementation |
@@ -96,6 +97,7 @@ protected function __construct(ExecutionContext $context) |
96 | 97 | * @param mixed $rootValue |
97 | 98 | * @param mixed $contextValue |
98 | 99 | * @param array<string, mixed> $variableValues |
| 100 | + * |
99 | 101 | * @phpstan-param FieldResolver $fieldResolver |
100 | 102 | */ |
101 | 103 | public static function create( |
@@ -145,6 +147,7 @@ public function doExecute(): Promise |
145 | 147 | * @param mixed $rootValue |
146 | 148 | * @param mixed $contextValue |
147 | 149 | * @param array<string, mixed> $rawVariableValues |
| 150 | + * |
148 | 151 | * @phpstan-param FieldResolver $fieldResolver |
149 | 152 | * |
150 | 153 | * @return ExecutionContext|array<int, Error> |
@@ -391,6 +394,7 @@ protected function getOperationRootType(Schema $schema, OperationDefinitionNode |
391 | 394 | * Object type returned by that field. |
392 | 395 | * |
393 | 396 | * @param ArrayObject<string, true> $visitedFragmentNames |
| 397 | + * |
394 | 398 | * @phpstan-param Fields $fields |
395 | 399 | * |
396 | 400 | * @phpstan-return Fields |
@@ -525,6 +529,7 @@ protected function doesFragmentConditionMatch(Node $fragment, ObjectType $type): |
525 | 529 | * |
526 | 530 | * @param mixed $rootValue |
527 | 531 | * @param array<string|int> $path |
| 532 | + * |
528 | 533 | * @phpstan-param Fields $fields |
529 | 534 | * |
530 | 535 | * @return array<mixed>|Promise|stdClass |
@@ -579,6 +584,7 @@ function ($results, $responseName) use ($path, $parentType, $rootValue, $fields) |
579 | 584 | * |
580 | 585 | * @param mixed $rootValue |
581 | 586 | * @param array<int, string|int> $path |
| 587 | + * |
582 | 588 | * @phpstan-param Path $path |
583 | 589 | * |
584 | 590 | * @param ArrayObject<int, FieldNode> $fieldNodes |
@@ -680,6 +686,7 @@ protected function getFieldDef(Schema $schema, ObjectType $parentType, string $f |
680 | 686 | * Returns the result of resolveFn or the abrupt-return Error object. |
681 | 687 | * |
682 | 688 | * @param mixed $rootValue |
| 689 | + * |
683 | 690 | * @phpstan-param FieldResolver $resolveFn |
684 | 691 | * |
685 | 692 | * @return Throwable|Promise|mixed |
@@ -713,6 +720,7 @@ protected function resolveFieldValueOrError( |
713 | 720 | * |
714 | 721 | * @param ArrayObject<int, FieldNode> $fieldNodes |
715 | 722 | * @param array<string|int> $path |
| 723 | + * |
716 | 724 | * @phpstan-param Path $path |
717 | 725 | * |
718 | 726 | * @param mixed $result |
@@ -1270,6 +1278,7 @@ protected function collectSubFields(ObjectType $returnType, ArrayObject $fieldNo |
1270 | 1278 | * |
1271 | 1279 | * @param mixed $rootValue |
1272 | 1280 | * @param array<string|int> $path |
| 1281 | + * |
1273 | 1282 | * @phpstan-param Fields $fields |
1274 | 1283 | * |
1275 | 1284 | * @return Promise|stdClass|array<mixed> |
|
0 commit comments