mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-06 00:05:42 +08:00
Fix prefer-stable negative result in ghtar (#500)
* Fix prefer-stable got opposite result * Add swoole tests and remove irrelevant tests
This commit is contained in:
@@ -69,7 +69,7 @@ class Downloader
|
||||
retry: intval(getenv('SPC_RETRY_TIME') ? getenv('SPC_RETRY_TIME') : 0)
|
||||
), true);
|
||||
|
||||
if (($source['prefer-stable'] ?? false) === true) {
|
||||
if (($source['prefer-stable'] ?? false) === false) {
|
||||
$url = $data[0]['tarball_url'];
|
||||
} else {
|
||||
$id = 0;
|
||||
|
||||
Reference in New Issue
Block a user