diff --git a/src/GraphQl/Type/TypesContainerInterface.php b/src/GraphQl/Type/TypesContainerInterface.php index c8ce6dee90f..8b531411bf5 100644 --- a/src/GraphQl/Type/TypesContainerInterface.php +++ b/src/GraphQl/Type/TypesContainerInterface.php @@ -40,7 +40,7 @@ public function set(string $id, GraphQLType $type): void; * * @return GraphQLType The type found in the container */ - public function get(string $id): GraphQLType; + public function get($id): GraphQLType; /** * Gets all the types. @@ -56,5 +56,5 @@ public function all(): array; * * @return bool true if the type is present, false otherwise */ - public function has(string $id): bool; + public function has($id): bool; } diff --git a/tests/Symfony/Bundle/DependencyInjection/ApiPlatformExtensionTest.php b/tests/Symfony/Bundle/DependencyInjection/ApiPlatformExtensionTest.php index 4e72f6dd346..b0e332f3831 100644 --- a/tests/Symfony/Bundle/DependencyInjection/ApiPlatformExtensionTest.php +++ b/tests/Symfony/Bundle/DependencyInjection/ApiPlatformExtensionTest.php @@ -118,7 +118,8 @@ class ApiPlatformExtensionTest extends TestCase 'enable_docs' => true, ]]; - private ContainerBuilder $container; + /** @var ContainerBuilder */ + private $container; protected function setUp(): void {