From becf11aa143c1a6067cb00f2ef13c74a78c2785a Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Tue, 13 Jul 2021 11:55:30 +0200 Subject: [PATCH] Fix tests --- .github/workflows/unit-tests.yml | 2 +- .../Contracts/Tests/Service/ServiceSubscriberTraitTest.php | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 0f8f1230f2..430d67c4c8 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -139,7 +139,7 @@ jobs: if: "${{ matrix.php == '8.0' && ! matrix.mode }}" run: | sed -i 's/"\*\*\/Tests\/"//' composer.json - composer install --optimize-autoloader + composer install -q --optimize-autoloader SYMFONY_PATCH_TYPE_DECLARATIONS=force=1 php .github/patch-types.php SYMFONY_PATCH_TYPE_DECLARATIONS=force=1 php .github/patch-types.php # ensure the script is idempotent echo PHPUNIT="$PHPUNIT,legacy" >> $GITHUB_ENV diff --git a/src/Symfony/Contracts/Tests/Service/ServiceSubscriberTraitTest.php b/src/Symfony/Contracts/Tests/Service/ServiceSubscriberTraitTest.php index 7d1ddd75c2..ff2a6455c8 100644 --- a/src/Symfony/Contracts/Tests/Service/ServiceSubscriberTraitTest.php +++ b/src/Symfony/Contracts/Tests/Service/ServiceSubscriberTraitTest.php @@ -42,7 +42,10 @@ class ParentTestService { } - public function setContainer(ContainerInterface $container): ContainerInterface + /** + * @return ContainerInterface + */ + public function setContainer(ContainerInterface $container) { return $container; }