diff --git a/benchmarks/HugeSchemaBench.php b/benchmarks/HugeSchemaBench.php index b9830c0..d0cce0f 100644 --- a/benchmarks/HugeSchemaBench.php +++ b/benchmarks/HugeSchemaBench.php @@ -78,7 +78,7 @@ class HugeSchemaBench private function createLazySchema() { return new Schema( - \GraphQL\Config::create() + \GraphQL\Type\SchemaConfig::create() ->setQuery($this->schemaBuilder->buildQueryType()) // ->setDescriptor($this->descriptor) ->setTypeLoader(function($name) { diff --git a/tests/Type/ValidationTest.php b/tests/Type/ValidationTest.php index 47cfbd9..97f8c94 100644 --- a/tests/Type/ValidationTest.php +++ b/tests/Type/ValidationTest.php @@ -814,7 +814,7 @@ class ValidationTest extends \PHPUnit_Framework_TestCase $schema = $this->schemaWithFieldType(new ObjectType([ 'name' => 'SomeObject', - 'interfaces' => function () use ($NonUniqInterface, $AnotherInterface, $NonUniqInterface) { + 'interfaces' => function () use ($NonUniqInterface, $AnotherInterface) { return [$NonUniqInterface, $AnotherInterface, $NonUniqInterface]; }, 'fields' => ['f' => ['type' => Type::string()]]