@@ -87,7 +87,7 @@ public static function create(
87
87
$ contextValue ,
88
88
array $ variableValues ,
89
89
?string $ operationName ,
90
- callable $ fieldResolver
90
+ callable $ fieldResolver,
91
91
): ExecutorImplementation {
92
92
$ exeContext = static ::buildExecutionContext (
93
93
$ schema ,
@@ -141,7 +141,7 @@ protected static function buildExecutionContext(
141
141
array $ rawVariableValues ,
142
142
?string $ operationName ,
143
143
callable $ fieldResolver ,
144
- PromiseAdapter $ promiseAdapter
144
+ PromiseAdapter $ promiseAdapter,
145
145
) {
146
146
/** @var array<int, Error> $errors */
147
147
$ errors = [];
@@ -394,7 +394,7 @@ protected function collectFields(
394
394
ObjectType $ runtimeType ,
395
395
SelectionSetNode $ selectionSet ,
396
396
\ArrayObject $ fields ,
397
- \ArrayObject $ visitedFragmentNames
397
+ \ArrayObject $ visitedFragmentNames,
398
398
): \ArrayObject {
399
399
$ exeContext = $ this ->exeContext ;
400
400
foreach ($ selectionSet ->selections as $ selection ) {
@@ -606,7 +606,7 @@ protected function resolveField(
606
606
string $ responseName ,
607
607
array $ path ,
608
608
array $ unaliasedPath ,
609
- $ contextValue
609
+ $ contextValue,
610
610
) {
611
611
$ exeContext = $ this ->exeContext ;
612
612
@@ -723,7 +723,7 @@ protected function resolveFieldValueOrError(
723
723
callable $ resolveFn ,
724
724
$ rootValue ,
725
725
ResolveInfo $ info ,
726
- $ contextValue
726
+ $ contextValue,
727
727
) {
728
728
try {
729
729
// Build a map of arguments from the field.arguments AST, using the
@@ -765,7 +765,7 @@ protected function completeValueCatchingError(
765
765
array $ path ,
766
766
array $ unaliasedPath ,
767
767
$ result ,
768
- $ contextValue
768
+ $ contextValue,
769
769
) {
770
770
// Otherwise, error protection is applied, logging the error and resolving
771
771
// a null value for this field if one is encountered.
@@ -859,7 +859,7 @@ protected function completeValue(
859
859
array $ path ,
860
860
array $ unaliasedPath ,
861
861
&$ result ,
862
- $ contextValue
862
+ $ contextValue,
863
863
) {
864
864
// If result is an Error, throw a located error.
865
865
if ($ result instanceof \Throwable) {
@@ -1002,7 +1002,7 @@ protected function completeListValue(
1002
1002
array $ path ,
1003
1003
array $ unaliasedPath ,
1004
1004
iterable &$ results ,
1005
- $ contextValue
1005
+ $ contextValue,
1006
1006
) {
1007
1007
$ itemType = $ returnType ->getWrappedType ();
1008
1008
@@ -1078,7 +1078,7 @@ protected function completeAbstractValue(
1078
1078
array $ path ,
1079
1079
array $ unaliasedPath ,
1080
1080
&$ result ,
1081
- $ contextValue
1081
+ $ contextValue,
1082
1082
) {
1083
1083
$ typeCandidate = $ returnType ->resolveType ($ result , $ contextValue , $ info );
1084
1084
@@ -1211,7 +1211,7 @@ protected function completeObjectValue(
1211
1211
array $ path ,
1212
1212
array $ unaliasedPath ,
1213
1213
&$ result ,
1214
- $ contextValue
1214
+ $ contextValue,
1215
1215
) {
1216
1216
// If there is an isTypeOf predicate function, call it with the
1217
1217
// current result. If isTypeOf returns false, then raise an error rather
@@ -1266,7 +1266,7 @@ protected function completeObjectValue(
1266
1266
protected function invalidReturnTypeError (
1267
1267
ObjectType $ returnType ,
1268
1268
$ result ,
1269
- \ArrayObject $ fieldNodes
1269
+ \ArrayObject $ fieldNodes,
1270
1270
): Error {
1271
1271
$ safeResult = Utils::printSafe ($ result );
1272
1272
@@ -1294,7 +1294,7 @@ protected function collectAndExecuteSubfields(
1294
1294
array $ path ,
1295
1295
array $ unaliasedPath ,
1296
1296
&$ result ,
1297
- $ contextValue
1297
+ $ contextValue,
1298
1298
) {
1299
1299
$ subFieldNodes = $ this ->collectSubFields ($ returnType , $ fieldNodes );
1300
1300
@@ -1440,7 +1440,7 @@ protected function ensureValidRuntimeType(
1440
1440
$ runtimeTypeOrName ,
1441
1441
AbstractType $ returnType ,
1442
1442
ResolveInfo $ info ,
1443
- &$ result
1443
+ &$ result,
1444
1444
): ObjectType {
1445
1445
$ runtimeType = \is_string ($ runtimeTypeOrName )
1446
1446
? $ this ->exeContext ->schema ->getType ($ runtimeTypeOrName )
0 commit comments