Skip to content

Commit 711398c

Browse files
committed
fix: php 7.1
1 parent cbab536 commit 711398c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/GraphQl/Type/TypesContainerInterface.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function set(string $id, GraphQLType $type): void;
4040
*
4141
* @return GraphQLType The type found in the container
4242
*/
43-
public function get(string $id): GraphQLType;
43+
public function get($id): GraphQLType;
4444

4545
/**
4646
* Gets all the types.
@@ -56,5 +56,5 @@ public function all(): array;
5656
*
5757
* @return bool true if the type is present, false otherwise
5858
*/
59-
public function has(string $id): bool;
59+
public function has($id): bool;
6060
}

tests/Symfony/Bundle/DependencyInjection/ApiPlatformExtensionTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ class ApiPlatformExtensionTest extends TestCase
118118
'enable_docs' => true,
119119
]];
120120

121-
private ContainerBuilder $container;
121+
/** @var ContainerBuilder */
122+
private $container;
122123

123124
protected function setUp(): void
124125
{

0 commit comments

Comments
 (0)