mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
Fix switch-php-version command not working bug
This commit is contained in:
parent
64fde5fd8c
commit
ee46c1c387
@ -67,13 +67,11 @@ class SwitchPhpVersionCommand extends BaseCommand
|
||||
InteractiveTerm::finish('Removed: ' . $source_dir);
|
||||
}
|
||||
|
||||
// Set the PHP version for download
|
||||
// This defines the version that will be used when resolving php-src artifact
|
||||
define('SPC_BUILD_PHP_VERSION', $php_ver);
|
||||
|
||||
// Download new PHP source
|
||||
$this->output->writeln("<info>Downloading PHP {$php_ver} source...</info>");
|
||||
|
||||
$this->input->setOption('with-php', $php_ver);
|
||||
|
||||
$downloaderOptions = DownloaderOptions::extractFromConsoleOptions($this->input->getOptions());
|
||||
$downloader = new ArtifactDownloader($downloaderOptions);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user