Skip to content

Commit da6783b

Browse files
committed
fix: php 7.1
1 parent cbab536 commit da6783b

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,7 @@ jobs:
140140
doctrine/mongodb-odm \
141141
doctrine/mongodb-odm-bundle
142142
- name: Update project dependencies
143-
if: (!startsWith(matrix.php, '7.1'))
144143
run: composer update --no-interaction --no-progress --ansi
145-
- name: Update project dependencies (7.1)
146-
if: (startsWith(matrix.php, '7.1') || startsWith(matrix.php, '7.2'))
147-
run: composer update --no-interaction --no-progress --ansi --ignore-platform-reqs
148144
- name: Require Symfony components
149145
if: (!startsWith(matrix.php, '7.1'))
150146
run: composer require symfony/uid --dev --no-interaction --no-progress --ansi
@@ -232,11 +228,7 @@ jobs:
232228
doctrine/mongodb-odm \
233229
doctrine/mongodb-odm-bundle
234230
- name: Update project dependencies
235-
if: (!startsWith(matrix.php, '7.1'))
236231
run: composer update --no-interaction --no-progress --ansi
237-
- name: Update project dependencies (7.1)
238-
if: (startsWith(matrix.php, '7.1') || startsWith(matrix.php, '7.2'))
239-
run: composer update --no-interaction --no-progress --ansi --ignore-platform-reqs
240232
- name: Require Symfony components
241233
if: (!startsWith(matrix.php, '7.1'))
242234
run: composer require symfony/uid --dev --no-interaction --no-progress --ansi

src/GraphQl/Type/TypesContainerInterface.php

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 1 deletion
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)