mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 12:24:53 +08:00
fix downloader selecting drafts
This commit is contained in:
parent
53f7cdefe0
commit
6b5200002e
428
composer.lock
generated
428
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@ -108,6 +108,9 @@ class Downloader
|
||||
if (($rel['prerelease'] ?? false) === true && ($source['prefer-stable'] ?? false)) {
|
||||
continue;
|
||||
}
|
||||
if (($rel['draft'] ?? false) === true && (($source['prefer-stable'] ?? false) || !$rel['tarball_url'])) {
|
||||
continue;
|
||||
}
|
||||
if (!($source['match'] ?? null)) {
|
||||
$url = $rel['tarball_url'] ?? null;
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user