From da6783b953a0590177bad23e03c03e9b1e943b3f Mon Sep 17 00:00:00 2001 From: soyuka Date: Sat, 5 Mar 2022 16:22:04 +0100 Subject: [PATCH] fix: php 7.1 --- .github/workflows/ci.yml | 8 -------- src/GraphQl/Type/TypesContainerInterface.php | 4 ++-- .../DependencyInjection/ApiPlatformExtensionTest.php | 3 ++- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 542db579dc6..904193b70b6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -140,11 +140,7 @@ jobs: doctrine/mongodb-odm \ doctrine/mongodb-odm-bundle - name: Update project dependencies - if: (!startsWith(matrix.php, '7.1')) run: composer update --no-interaction --no-progress --ansi - - name: Update project dependencies (7.1) - if: (startsWith(matrix.php, '7.1') || startsWith(matrix.php, '7.2')) - run: composer update --no-interaction --no-progress --ansi --ignore-platform-reqs - name: Require Symfony components if: (!startsWith(matrix.php, '7.1')) run: composer require symfony/uid --dev --no-interaction --no-progress --ansi @@ -232,11 +228,7 @@ jobs: doctrine/mongodb-odm \ doctrine/mongodb-odm-bundle - name: Update project dependencies - if: (!startsWith(matrix.php, '7.1')) run: composer update --no-interaction --no-progress --ansi - - name: Update project dependencies (7.1) - if: (startsWith(matrix.php, '7.1') || startsWith(matrix.php, '7.2')) - run: composer update --no-interaction --no-progress --ansi --ignore-platform-reqs - name: Require Symfony components if: (!startsWith(matrix.php, '7.1')) run: composer require symfony/uid --dev --no-interaction --no-progress --ansi 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 {