Skip to content

Commit

Permalink
fix: php 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Mar 5, 2022
1 parent cbab536 commit da6783b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/GraphQl/Type/TypesContainerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ class ApiPlatformExtensionTest extends TestCase
'enable_docs' => true,
]];

private ContainerBuilder $container;
/** @var ContainerBuilder */
private $container;

protected function setUp(): void
{
Expand Down

0 comments on commit da6783b

Please sign in to comment.