mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 01:45:36 +08:00
Fix switch-php-version command not working bug
This commit is contained in:
@@ -67,13 +67,11 @@ class SwitchPhpVersionCommand extends BaseCommand
|
|||||||
InteractiveTerm::finish('Removed: ' . $source_dir);
|
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
|
// Download new PHP source
|
||||||
$this->output->writeln("<info>Downloading PHP {$php_ver} source...</info>");
|
$this->output->writeln("<info>Downloading PHP {$php_ver} source...</info>");
|
||||||
|
|
||||||
|
$this->input->setOption('with-php', $php_ver);
|
||||||
|
|
||||||
$downloaderOptions = DownloaderOptions::extractFromConsoleOptions($this->input->getOptions());
|
$downloaderOptions = DownloaderOptions::extractFromConsoleOptions($this->input->getOptions());
|
||||||
$downloader = new ArtifactDownloader($downloaderOptions);
|
$downloader = new ArtifactDownloader($downloaderOptions);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user