Skip to content

Commit

Permalink
remove not needed PHP version switch
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Feb 16, 2023
1 parent a90b3a2 commit 8ea24dc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions phpunit
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,9 @@ if (!file_exists(__DIR__.'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {
exit(1);
}
if (!getenv('SYMFONY_PHPUNIT_VERSION')) {
if (\PHP_VERSION_ID < 70300) {
putenv('SYMFONY_PHPUNIT_VERSION=8.5.26');
} else {
putenv('SYMFONY_PHPUNIT_VERSION=9.6');
}
putenv('SYMFONY_PHPUNIT_VERSION=9.6');
}
if (!getenv('SYMFONY_PATCH_TYPE_DECLARATIONS') && \PHP_VERSION_ID >= 70300) {
if (!getenv('SYMFONY_PATCH_TYPE_DECLARATIONS')) {
putenv('SYMFONY_PATCH_TYPE_DECLARATIONS=deprecations=1');
}
if (getcwd() === realpath(__DIR__.'/src/Symfony/Bridge/PhpUnit')) {
Expand Down

0 comments on commit 8ea24dc

Please sign in to comment.