Passed
Pull Request — master (#557)
by Max
03:00
created
src/Type/Definition/UnionType.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function __construct(array $config)
37 37
     {
38
-        if (! isset($config['name'])) {
38
+        if (!isset($config['name'])) {
39 39
             $config['name'] = $this->tryInferName();
40 40
         }
41 41
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
     public function isPossibleType(Type $type) : bool
57 57
     {
58
-        if (! $type instanceof ObjectType) {
58
+        if (!$type instanceof ObjectType) {
59 59
             return false;
60 60
         }
61 61
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     public function getTypes()
76 76
     {
77 77
         if ($this->types === null) {
78
-            if (! isset($this->config['types'])) {
78
+            if (!isset($this->config['types'])) {
79 79
                 $types = null;
80 80
             } elseif (is_callable($this->config['types'])) {
81 81
                 $types = call_user_func($this->config['types']);
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
                 $types = $this->config['types'];
84 84
             }
85 85
 
86
-            if (! is_array($types)) {
86
+            if (!is_array($types)) {
87 87
                 throw new InvariantViolation(
88 88
                     sprintf(
89 89
                         'Must provide Array of types or a callable which returns such an array for Union %s',
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
                 );
93 93
             }
94 94
 
95
-            $this->types = array_map(static function ($type) {
95
+            $this->types = array_map(static function($type) {
96 96
                 return Schema::resolveType($type);
97 97
             }, $types);
98 98
         }
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     {
127 127
         parent::assertValid();
128 128
 
129
-        if (! isset($this->config['resolveType'])) {
129
+        if (!isset($this->config['resolveType'])) {
130 130
             return;
131 131
         }
132 132
 
Please login to merge, or discard this patch.
src/Type/Schema.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -108,11 +108,11 @@  discard block
 block discarded – undo
108 108
                 Utils::getVariableType($config)
109 109
             );
110 110
             Utils::invariant(
111
-                ! $config->types || is_array($config->types) || is_callable($config->types),
111
+                !$config->types || is_array($config->types) || is_callable($config->types),
112 112
                 '"types" must be array or callable if provided but got: ' . Utils::getVariableType($config->types)
113 113
             );
114 114
             Utils::invariant(
115
-                ! $config->directives || is_array($config->directives),
115
+                !$config->directives || is_array($config->directives),
116 116
                 '"directives" must be Array if provided but got: ' . Utils::getVariableType($config->directives)
117 117
             );
118 118
         }
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
             $types = $types();
165 165
         }
166 166
 
167
-        if (! is_array($types) && ! $types instanceof Traversable) {
167
+        if (!is_array($types) && !$types instanceof Traversable) {
168 168
             throw new InvariantViolation(sprintf(
169 169
                 'Schema types callable must return array or instance of Traversable but got: %s',
170 170
                 Utils::getVariableType($types)
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 
174 174
         foreach ($types as $index => $type) {
175 175
             $type = self::resolveType($type);
176
-            if (! $type instanceof Type) {
176
+            if (!$type instanceof Type) {
177 177
                 throw new InvariantViolation(sprintf(
178 178
                     'Each entry of schema types must be instance of GraphQL\Type\Definition\Type but entry at %s is %s',
179 179
                     $index,
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
      */
197 197
     public function getTypeMap()
198 198
     {
199
-        if (! $this->fullyLoaded) {
199
+        if (!$this->fullyLoaded) {
200 200
             $this->resolvedTypes = $this->collectAllTypes();
201 201
             $this->fullyLoaded   = true;
202 202
         }
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
             $typeMap = TypeInfo::extractTypes($type, $typeMap);
215 215
         }
216 216
         foreach ($this->getDirectives() as $directive) {
217
-            if (! ($directive instanceof Directive)) {
217
+            if (!($directive instanceof Directive)) {
218 218
                 continue;
219 219
             }
220 220
 
@@ -314,10 +314,10 @@  discard block
 block discarded – undo
314 314
      */
315 315
     public function getType(string $name) : ?Type
316 316
     {
317
-        if (! isset($this->resolvedTypes[$name])) {
317
+        if (!isset($this->resolvedTypes[$name])) {
318 318
             $type = $this->loadType($name);
319 319
 
320
-            if (! $type) {
320
+            if (!$type) {
321 321
                 return null;
322 322
             }
323 323
             $this->resolvedTypes[$name] = self::resolveType($type);
@@ -335,13 +335,13 @@  discard block
 block discarded – undo
335 335
     {
336 336
         $typeLoader = $this->config->typeLoader;
337 337
 
338
-        if (! $typeLoader) {
338
+        if (!$typeLoader) {
339 339
             return $this->defaultTypeLoader($typeName);
340 340
         }
341 341
 
342 342
         $type = $typeLoader($typeName);
343 343
 
344
-        if (! $type instanceof Type && ! is_callable($type)) {
344
+        if (!$type instanceof Type && !is_callable($type)) {
345 345
             throw new InvariantViolation(
346 346
                 sprintf(
347 347
                     'Type loader is expected to return a callable or valid type "%s", but it returned %s',
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
             foreach ($this->getTypeMap() as $type) {
415 415
                 if ($type instanceof ObjectType) {
416 416
                     foreach ($type->getInterfaces() as $interface) {
417
-                        if (! ($interface instanceof InterfaceType)) {
417
+                        if (!($interface instanceof InterfaceType)) {
418 418
                             continue;
419 419
                         }
420 420
 
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
             $type->assertValid();
501 501
 
502 502
             // Make sure type loader returns the same instance as registered in other places of schema
503
-            if (! $this->config->typeLoader) {
503
+            if (!$this->config->typeLoader) {
504 504
                 continue;
505 505
             }
506 506
 
Please login to merge, or discard this patch.
src/Utils/TypeInfo.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         if (Type::isCompositeType($initialType)) {
95 95
             $this->parentTypeStack[] = $initialType;
96 96
         }
97
-        if (! Type::isOutputType($initialType)) {
97
+        if (!Type::isOutputType($initialType)) {
98 98
             return;
99 99
         }
100 100
 
@@ -149,10 +149,10 @@  discard block
 block discarded – undo
149 149
      */
150 150
     public static function extractTypes($type, ?array $typeMap = null)
151 151
     {
152
-        if (! $typeMap) {
152
+        if (!$typeMap) {
153 153
             $typeMap = [];
154 154
         }
155
-        if (! $type) {
155
+        if (!$type) {
156 156
             return $typeMap;
157 157
         }
158 158
 
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
             return self::extractTypes($type->getWrappedType(true), $typeMap);
161 161
         }
162 162
 
163
-        if (! $type instanceof Type) {
163
+        if (!$type instanceof Type) {
164 164
             // Preserve these invalid types in map (at numeric index) to make them
165 165
             // detectable during $schema->validate()
166 166
             $i            = 0;
@@ -169,14 +169,14 @@  discard block
 block discarded – undo
169 169
                 $alreadyInMap = $alreadyInMap || $typeMap[$i] === $type;
170 170
                 $i++;
171 171
             }
172
-            if (! $alreadyInMap) {
172
+            if (!$alreadyInMap) {
173 173
                 $typeMap[$i] = $type;
174 174
             }
175 175
 
176 176
             return $typeMap;
177 177
         }
178 178
 
179
-        if (! empty($typeMap[$type->name])) {
179
+        if (!empty($typeMap[$type->name])) {
180 180
             Utils::invariant(
181 181
                 $typeMap[$type->name] === $type,
182 182
                 sprintf('Schema must contain unique named types but contains multiple types named "%s" ', $type) .
@@ -197,9 +197,9 @@  discard block
 block discarded – undo
197 197
         }
198 198
         if ($type instanceof ObjectType || $type instanceof InterfaceType) {
199 199
             foreach ($type->getFields() as $fieldName => $field) {
200
-                if (! empty($field->args)) {
200
+                if (!empty($field->args)) {
201 201
                     $fieldArgTypes = array_map(
202
-                        static function (FieldArgument $arg) {
202
+                        static function(FieldArgument $arg) {
203 203
                             return $arg->getType();
204 204
                         },
205 205
                         $field->args
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
                     /** @var FieldArgument $argDef */
325 325
                     $argDef = Utils::find(
326 326
                         $fieldOrDirective->args,
327
-                        static function ($arg) use ($node) {
327
+                        static function($arg) use ($node) {
328 328
                             return $arg->name === $node->name->value;
329 329
                         }
330 330
                     );
Please login to merge, or discard this patch.
examples/01-blog/Blog/Types.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         return $type;
68 68
     }
69 69
 
70
-    public static function byTypeName($shortName, $removeType=true)
70
+    public static function byTypeName($shortName, $removeType = true)
71 71
     {
72 72
         $cacheName = strtolower($shortName);
73 73
         $type = null;
@@ -77,11 +77,11 @@  discard block
 block discarded – undo
77 77
         }
78 78
 
79 79
         $method = lcfirst($shortName);
80
-        if(method_exists(get_called_class(), $method)) {
80
+        if (method_exists(get_called_class(), $method)) {
81 81
             $type = self::{$method}();
82 82
         }
83 83
 
84
-        if(!$type) {
84
+        if (!$type) {
85 85
             throw new Exception("Unknown graphql type: " . $shortName);
86 86
         }
87 87
         return $type;
Please login to merge, or discard this patch.
src/Executor/ReferenceExecutor.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
     private function __construct(ExecutionContext $context)
64 64
     {
65
-        if (! self::$UNDEFINED) {
65
+        if (!self::$UNDEFINED) {
66 66
             self::$UNDEFINED = Utils::undefined();
67 67
         }
68 68
         $this->exeContext    = $context;
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
                 $errors = array_merge($errors, $coercionErrors);
178 178
             }
179 179
         }
180
-        if (! empty($errors)) {
180
+        if (!empty($errors)) {
181 181
             return $errors;
182 182
         }
183 183
         Utils::invariant($operation, 'Has operation if no errors.');
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
     private function buildResponse($data)
224 224
     {
225 225
         if ($this->isPromise($data)) {
226
-            return $data->then(function ($resolved) {
226
+            return $data->then(function($resolved) {
227 227
                 return $this->buildResponse($resolved);
228 228
             });
229 229
         }
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
             if ($this->isPromise($result)) {
259 259
                 return $result->then(
260 260
                     null,
261
-                    function ($error) {
261
+                    function($error) {
262 262
                         if ($error instanceof Error) {
263 263
                             $this->exeContext->addError($error);
264 264
 
@@ -347,18 +347,18 @@  discard block
 block discarded – undo
347 347
         foreach ($selectionSet->selections as $selection) {
348 348
             switch (true) {
349 349
                 case $selection instanceof FieldNode:
350
-                    if (! $this->shouldIncludeNode($selection)) {
350
+                    if (!$this->shouldIncludeNode($selection)) {
351 351
                         break;
352 352
                     }
353 353
                     $name = self::getFieldEntryKey($selection);
354
-                    if (! isset($fields[$name])) {
354
+                    if (!isset($fields[$name])) {
355 355
                         $fields[$name] = new ArrayObject();
356 356
                     }
357 357
                     $fields[$name][] = $selection;
358 358
                     break;
359 359
                 case $selection instanceof InlineFragmentNode:
360
-                    if (! $this->shouldIncludeNode($selection) ||
361
-                        ! $this->doesFragmentConditionMatch($selection, $runtimeType)
360
+                    if (!$this->shouldIncludeNode($selection) ||
361
+                        !$this->doesFragmentConditionMatch($selection, $runtimeType)
362 362
                     ) {
363 363
                         break;
364 364
                     }
@@ -371,13 +371,13 @@  discard block
 block discarded – undo
371 371
                     break;
372 372
                 case $selection instanceof FragmentSpreadNode:
373 373
                     $fragName = $selection->name->value;
374
-                    if (! empty($visitedFragmentNames[$fragName]) || ! $this->shouldIncludeNode($selection)) {
374
+                    if (!empty($visitedFragmentNames[$fragName]) || !$this->shouldIncludeNode($selection)) {
375 375
                         break;
376 376
                     }
377 377
                     $visitedFragmentNames[$fragName] = true;
378 378
                     /** @var FragmentDefinitionNode|null $fragment */
379 379
                     $fragment = $exeContext->fragments[$fragName] ?? null;
380
-                    if ($fragment === null || ! $this->doesFragmentConditionMatch($fragment, $runtimeType)) {
380
+                    if ($fragment === null || !$this->doesFragmentConditionMatch($fragment, $runtimeType)) {
381 381
                         break;
382 382
                     }
383 383
                     $this->collectFields(
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
             $variableValues
419 419
         );
420 420
 
421
-        return ! isset($include['if']) || $include['if'] !== false;
421
+        return !isset($include['if']) || $include['if'] !== false;
422 422
     }
423 423
 
424 424
     /**
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
     {
470 470
         $result = $this->promiseReduce(
471 471
             array_keys($fields->getArrayCopy()),
472
-            function ($results, $responseName) use ($path, $parentType, $rootValue, $fields) {
472
+            function($results, $responseName) use ($path, $parentType, $rootValue, $fields) {
473 473
                 $fieldNodes  = $fields[$responseName];
474 474
                 $fieldPath   = $path;
475 475
                 $fieldPath[] = $responseName;
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
                 }
480 480
                 $promise = $this->getPromise($result);
481 481
                 if ($promise !== null) {
482
-                    return $promise->then(static function ($resolvedResult) use ($responseName, $results) {
482
+                    return $promise->then(static function($resolvedResult) use ($responseName, $results) {
483 483
                         $results[$responseName] = $resolvedResult;
484 484
 
485 485
                         return $results;
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
         );
494 494
 
495 495
         if ($this->isPromise($result)) {
496
-            return $result->then(static function ($resolvedResults) {
496
+            return $result->then(static function($resolvedResults) {
497 497
                 return self::fixResultsIfEmptyArray($resolvedResults);
498 498
             });
499 499
         }
@@ -617,7 +617,7 @@  discard block
 block discarded – undo
617 617
         try {
618 618
             // Build a map of arguments from the field.arguments AST, using the
619 619
             // variables scope to fulfill any variable references.
620
-            $args         = Values::getArgumentValues(
620
+            $args = Values::getArgumentValues(
621 621
                 $fieldDef,
622 622
                 $fieldNode,
623 623
                 $this->exeContext->variableValues
@@ -652,7 +652,7 @@  discard block
 block discarded – undo
652 652
         try {
653 653
             $promise = $this->getPromise($result);
654 654
             if ($promise !== null) {
655
-                $completed = $promise->then(function (&$resolved) use ($returnType, $fieldNodes, $info, $path) {
655
+                $completed = $promise->then(function(&$resolved) use ($returnType, $fieldNodes, $info, $path) {
656 656
                     return $this->completeValue($returnType, $fieldNodes, $info, $path, $resolved);
657 657
                 });
658 658
             } else {
@@ -661,7 +661,7 @@  discard block
 block discarded – undo
661 661
 
662 662
             $promise = $this->getPromise($completed);
663 663
             if ($promise !== null) {
664
-                return $promise->then(null, function ($error) use ($fieldNodes, $path, $returnType) {
664
+                return $promise->then(null, function($error) use ($fieldNodes, $path, $returnType) {
665 665
                     return $this->handleFieldError($error, $fieldNodes, $path, $returnType);
666 666
                 });
667 667
             }
@@ -820,7 +820,7 @@  discard block
 block discarded – undo
820 820
         }
821 821
         if ($this->exeContext->promiseAdapter->isThenable($value)) {
822 822
             $promise = $this->exeContext->promiseAdapter->convertThenable($value);
823
-            if (! $promise instanceof Promise) {
823
+            if (!$promise instanceof Promise) {
824 824
                 throw new InvariantViolation(sprintf(
825 825
                     '%s::convertThenable is expected to return instance of GraphQL\Executor\Promise\Promise, got: %s',
826 826
                     get_class($this->exeContext->promiseAdapter),
@@ -850,10 +850,10 @@  discard block
 block discarded – undo
850 850
     {
851 851
         return array_reduce(
852 852
             $values,
853
-            function ($previous, $value) use ($callback) {
853
+            function($previous, $value) use ($callback) {
854 854
                 $promise = $this->getPromise($previous);
855 855
                 if ($promise !== null) {
856
-                    return $promise->then(static function ($resolved) use ($callback, $value) {
856
+                    return $promise->then(static function($resolved) use ($callback, $value) {
857 857
                         return $callback($resolved, $value);
858 858
                     });
859 859
                 }
@@ -890,7 +890,7 @@  discard block
 block discarded – undo
890 890
             $fieldPath[]   = $i++;
891 891
             $info->path    = $fieldPath;
892 892
             $completedItem = $this->completeValueCatchingError($itemType, $fieldNodes, $info, $fieldPath, $item);
893
-            if (! $containsPromise && $this->getPromise($completedItem) !== null) {
893
+            if (!$containsPromise && $this->getPromise($completedItem) !== null) {
894 894
                 $containsPromise = true;
895 895
             }
896 896
             $completedItems[] = $completedItem;
@@ -951,7 +951,7 @@  discard block
 block discarded – undo
951 951
 
952 952
         $promise = $this->getPromise($runtimeType);
953 953
         if ($promise !== null) {
954
-            return $promise->then(function ($resolvedRuntimeType) use (
954
+            return $promise->then(function($resolvedRuntimeType) use (
955 955
                 $returnType,
956 956
                 $fieldNodes,
957 957
                 $info,
@@ -1042,9 +1042,9 @@  discard block
 block discarded – undo
1042 1042
                 return $type;
1043 1043
             }
1044 1044
         }
1045
-        if (! empty($promisedIsTypeOfResults)) {
1045
+        if (!empty($promisedIsTypeOfResults)) {
1046 1046
             return $this->exeContext->promiseAdapter->all($promisedIsTypeOfResults)
1047
-                ->then(static function ($isTypeOfResults) use ($possibleTypes) {
1047
+                ->then(static function($isTypeOfResults) use ($possibleTypes) {
1048 1048
                     foreach ($isTypeOfResults as $index => $result) {
1049 1049
                         if ($result) {
1050 1050
                             return $possibleTypes[$index];
@@ -1078,13 +1078,13 @@  discard block
 block discarded – undo
1078 1078
         if ($isTypeOf !== null) {
1079 1079
             $promise = $this->getPromise($isTypeOf);
1080 1080
             if ($promise !== null) {
1081
-                return $promise->then(function ($isTypeOfResult) use (
1081
+                return $promise->then(function($isTypeOfResult) use (
1082 1082
                     $returnType,
1083 1083
                     $fieldNodes,
1084 1084
                     $path,
1085 1085
                     &$result
1086 1086
                 ) {
1087
-                    if (! $isTypeOfResult) {
1087
+                    if (!$isTypeOfResult) {
1088 1088
                         throw $this->invalidReturnTypeError($returnType, $result, $fieldNodes);
1089 1089
                     }
1090 1090
 
@@ -1096,7 +1096,7 @@  discard block
 block discarded – undo
1096 1096
                     );
1097 1097
                 });
1098 1098
             }
1099
-            if (! $isTypeOf) {
1099
+            if (!$isTypeOf) {
1100 1100
                 throw $this->invalidReturnTypeError($returnType, $result, $fieldNodes);
1101 1101
             }
1102 1102
         }
@@ -1155,15 +1155,15 @@  discard block
 block discarded – undo
1155 1155
      */
1156 1156
     private function collectSubFields(ObjectType $returnType, $fieldNodes) : ArrayObject
1157 1157
     {
1158
-        if (! isset($this->subFieldCache[$returnType])) {
1158
+        if (!isset($this->subFieldCache[$returnType])) {
1159 1159
             $this->subFieldCache[$returnType] = new SplObjectStorage();
1160 1160
         }
1161
-        if (! isset($this->subFieldCache[$returnType][$fieldNodes])) {
1161
+        if (!isset($this->subFieldCache[$returnType][$fieldNodes])) {
1162 1162
             // Collect sub-fields to execute to complete this value.
1163 1163
             $subFieldNodes        = new ArrayObject();
1164 1164
             $visitedFragmentNames = new ArrayObject();
1165 1165
             foreach ($fieldNodes as $fieldNode) {
1166
-                if (! isset($fieldNode->selectionSet)) {
1166
+                if (!isset($fieldNode->selectionSet)) {
1167 1167
                     continue;
1168 1168
                 }
1169 1169
                 $subFieldNodes = $this->collectFields(
@@ -1200,13 +1200,13 @@  discard block
 block discarded – undo
1200 1200
             if ($result === self::$UNDEFINED) {
1201 1201
                 continue;
1202 1202
             }
1203
-            if (! $containsPromise && $this->isPromise($result)) {
1203
+            if (!$containsPromise && $this->isPromise($result)) {
1204 1204
                 $containsPromise = true;
1205 1205
             }
1206 1206
             $results[$responseName] = $result;
1207 1207
         }
1208 1208
         // If there are no promises, we can just return the object
1209
-        if (! $containsPromise) {
1209
+        if (!$containsPromise) {
1210 1210
             return self::fixResultsIfEmptyArray($results);
1211 1211
         }
1212 1212
 
@@ -1249,7 +1249,7 @@  discard block
 block discarded – undo
1249 1249
         $valuesAndPromises = array_values($assoc);
1250 1250
         $promise           = $this->exeContext->promiseAdapter->all($valuesAndPromises);
1251 1251
 
1252
-        return $promise->then(static function ($values) use ($keys) {
1252
+        return $promise->then(static function($values) use ($keys) {
1253 1253
             $resolvedResults = [];
1254 1254
             foreach ($values as $i => $value) {
1255 1255
                 $resolvedResults[$keys[$i]] = $value;
@@ -1275,7 +1275,7 @@  discard block
 block discarded – undo
1275 1275
         $runtimeType = is_string($runtimeTypeOrName)
1276 1276
             ? $this->exeContext->schema->getType($runtimeTypeOrName)
1277 1277
             : $runtimeTypeOrName;
1278
-        if (! $runtimeType instanceof ObjectType) {
1278
+        if (!$runtimeType instanceof ObjectType) {
1279 1279
             throw new InvariantViolation(
1280 1280
                 sprintf(
1281 1281
                     'Abstract type %s must resolve to an Object type at ' .
@@ -1291,7 +1291,7 @@  discard block
 block discarded – undo
1291 1291
                 )
1292 1292
             );
1293 1293
         }
1294
-        if (! $this->exeContext->schema->isPossibleType($returnType, $runtimeType)) {
1294
+        if (!$this->exeContext->schema->isPossibleType($returnType, $runtimeType)) {
1295 1295
             throw new InvariantViolation(
1296 1296
                 sprintf('Runtime Object type "%s" is not a possible type for "%s".', $runtimeType, $returnType)
1297 1297
             );
Please login to merge, or discard this patch.