Skip to content

Commit 0bc6184

Browse files
Merge branch '3.4' into 4.4
* 3.4: [Cache] fix catching auth errors Fix CS [FrameworkBundle] set default session.handler alias if handler_id is not provided Fix CS Readability update Fix checks for phpunit releases on Composer 2 (resolves #37601) [SCA] Minor fixes on tests
2 parents fd0e80b + 03f8311 commit 0bc6184

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bin/simple-phpunit.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,11 @@
196196
'requires' => ['php' => '*'],
197197
];
198198

199-
if (1 === count($info['versions'])) {
199+
$stableVersions = array_filter($info['versions'], function($v) {
200+
return !preg_match('/-dev$|^dev-/', $v);
201+
});
202+
203+
if (!$stableVersions) {
200204
$passthruOrFail("$COMPOSER create-project --ignore-platform-reqs --no-install --prefer-dist --no-scripts --no-plugins --no-progress -s dev phpunit/phpunit $PHPUNIT_VERSION_DIR \"$PHPUNIT_VERSION.*\"");
201205
} else {
202206
$passthruOrFail("$COMPOSER create-project --ignore-platform-reqs --no-install --prefer-dist --no-scripts --no-plugins --no-progress phpunit/phpunit $PHPUNIT_VERSION_DIR \"$PHPUNIT_VERSION.*\"");

0 commit comments

Comments
 (0)