-
-
Notifications
You must be signed in to change notification settings - Fork 562
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,6 @@ | |
|
||
namespace GraphQL\Tests; | ||
|
||
use GraphQL\Executor\Promise\Adapter\SyncPromiseAdapter; | ||
use GraphQL\Executor\Promise\Promise; | ||
use GraphQL\GraphQL; | ||
use GraphQL\Type\Definition\ObjectType; | ||
use GraphQL\Type\Definition\Type; | ||
|
@@ -27,7 +25,7 @@ public function testMultipleSchemasWithCustomIntType(): void | |
self::assertNotSame($schema1->getType('Int'), $schema2->getType('Int')); | ||
} | ||
|
||
private function createSchema() : Schema | ||
private function createSchema(): Schema | ||
{ | ||
$typeRegistry = new DefaultStandardTypeRegistry( | ||
CustomIntType::class | ||
|
@@ -38,7 +36,7 @@ private function createSchema() : Schema | |
'fields' => [ | ||
'count' => [ | ||
'type' => Type::nonNull($typeRegistry->int()), | ||
Check failure on line 38 in tests/MultipleSchemaTest.php GitHub Actions / Static Analysis with PHPStan (7.4)
Check failure on line 38 in tests/MultipleSchemaTest.php GitHub Actions / Static Analysis with PHPStan (8)
Check failure on line 38 in tests/MultipleSchemaTest.php GitHub Actions / Static Analysis with PHPStan (8.1)
Check failure on line 38 in tests/MultipleSchemaTest.php GitHub Actions / Static Analysis with PHPStan (8.2)
|
||
'resolve' => fn() => 1, | ||
'resolve' => fn () => 1, | ||
], | ||
], | ||
]); | ||
|
@@ -48,6 +46,6 @@ private function createSchema() : Schema | |
'query' => $query, | ||
]); | ||
|
||
return new Schema($config) ; | ||
return new Schema($config); | ||
Check failure on line 49 in tests/MultipleSchemaTest.php GitHub Actions / Static Analysis with PHPStan (7.4)
Check failure on line 49 in tests/MultipleSchemaTest.php GitHub Actions / Static Analysis with PHPStan (8)
Check failure on line 49 in tests/MultipleSchemaTest.php GitHub Actions / Static Analysis with PHPStan (8.1)
Check failure on line 49 in tests/MultipleSchemaTest.php GitHub Actions / Static Analysis with PHPStan (8.2)
|
||
} | ||
} |