From 9fa7dbd568d8b06893f0efe1b250a151d22f1648 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Wed, 10 Feb 2021 23:00:54 +0100 Subject: [PATCH] Cleanup phpunit script --- phpunit | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/phpunit b/phpunit index 1cb49096f4..a8f6674eb9 100755 --- a/phpunit +++ b/phpunit @@ -8,15 +8,13 @@ if (!file_exists(__DIR__.'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) { exit(1); } if (!getenv('SYMFONY_PHPUNIT_VERSION')) { - if (\PHP_VERSION_ID < 70200) { - putenv('SYMFONY_PHPUNIT_VERSION=7.5'); - } elseif (\PHP_VERSION_ID < 70300) { + if (\PHP_VERSION_ID < 70300) { putenv('SYMFONY_PHPUNIT_VERSION=8.5'); } else { putenv('SYMFONY_PHPUNIT_VERSION=9.5'); } } -if (!getenv('SYMFONY_PATCH_TYPE_DECLARATIONS') && \PHP_VERSION_ID >= 70200) { +if (!getenv('SYMFONY_PATCH_TYPE_DECLARATIONS')) { putenv('SYMFONY_PATCH_TYPE_DECLARATIONS=deprecations=1'); } if (getcwd() === realpath(__DIR__.'/src/Symfony/Bridge/PhpUnit')) {