Merge branch 'markhuot-patch-1'

This commit is contained in:
Vladimir Razuvaev 2018-11-22 18:44:22 +07:00
commit d8d032f0f6
3 changed files with 3 additions and 3 deletions

View File

@ -1043,7 +1043,7 @@ class ReferenceExecutor implements ExecutorImplementation
if ($abstractType instanceof InterfaceType && $info->schema->getConfig()->typeLoader) {
Warning::warnOnce(
sprintf(
'GraphQL Interface Type `%s` returned `null` from it`s `resolveType` function ' .
'GraphQL Interface Type `%s` returned `null` from its `resolveType` function ' .
'for value: %s. Switching to slow resolution method using `isTypeOf` ' .
'of all possible implementations. It requires full schema scan and degrades query performance significantly. ' .
' Make sure your `resolveType` always returns valid implementation or throws.',

View File

@ -900,7 +900,7 @@ class CoroutineExecutor implements Runtime, ExecutorImplementation
if ($abstractType instanceof InterfaceType && $this->schema->getConfig()->typeLoader) {
Warning::warnOnce(
sprintf(
'GraphQL Interface Type `%s` returned `null` from it`s `resolveType` function ' .
'GraphQL Interface Type `%s` returned `null` from its `resolveType` function ' .
'for value: %s. Switching to slow resolution method using `isTypeOf` ' .
'of all possible implementations. It requires full schema scan and degrades query performance significantly. ' .
' Make sure your `resolveType` always returns valid implementation or throws.',

View File

@ -154,7 +154,7 @@ class ExecutorLazySchemaTest extends TestCase
self::assertInstanceOf(Error::class, $result->errors[0]->getPrevious());
self::assertEquals(
'GraphQL Interface Type `Pet` returned `null` from it`s `resolveType` function for value: instance of ' .
'GraphQL Interface Type `Pet` returned `null` from its `resolveType` function for value: instance of ' .
'GraphQL\Tests\Executor\TestClasses\Dog. Switching to slow resolution method using `isTypeOf` of all possible ' .
'implementations. It requires full schema scan and degrades query performance significantly. ' .
'Make sure your `resolveType` always returns valid implementation or throws.',