@@ -640,7 +640,7 @@ discard block |
||
| 640 | 640 | throw new ExecutionException( |
| 641 | 641 | "Abstract type {$returnType->getName()} must resolve to an Object type at runtime " . |
| 642 | 642 | "for field {$info->getParentType()}.{$info->getFieldName()} with " . |
| 643 | - 'value "' . toString($result) . '", received "'. toString($runtimeType) . '".' |
|
| 643 | + 'value "' . toString($result) . '", received "' . toString($runtimeType) . '".' |
|
| 644 | 644 | ); |
| 645 | 645 | } |
| 646 | 646 | |
@@ -652,8 +652,8 @@ discard block |
||
| 652 | 652 | |
| 653 | 653 | if ($runtimeType !== $this->context->getSchema()->getType($runtimeType->getName())) { |
| 654 | 654 | throw new ExecutionException( |
| 655 | - "Schema must contain unique named types but contains multiple types named \"{$runtimeType->getName()}\". ". |
|
| 656 | - "Make sure that `resolveType` function of abstract type \"{$returnType->getName()}\" returns the same ". |
|
| 655 | + "Schema must contain unique named types but contains multiple types named \"{$runtimeType->getName()}\". " . |
|
| 656 | + "Make sure that `resolveType` function of abstract type \"{$returnType->getName()}\" returns the same " . |
|
| 657 | 657 | "type instance as referenced anywhere else within the schema." |
| 658 | 658 | ); |
| 659 | 659 | } |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | public function resolveType(...$args) |
| 18 | 18 | { |
| 19 | - if(!empty($this->resolveTypeFunction)) { |
|
| 19 | + if (!empty($this->resolveTypeFunction)) { |
|
| 20 | 20 | return \call_user_func_array($this->resolveTypeFunction, $args); |
| 21 | 21 | } |
| 22 | 22 | |