We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64fde5f commit ee46c1cCopy full SHA for ee46c1c
src/Package/Command/SwitchPhpVersionCommand.php
@@ -67,13 +67,11 @@ public function handle(): int
67
InteractiveTerm::finish('Removed: ' . $source_dir);
68
}
69
70
- // Set the PHP version for download
71
- // This defines the version that will be used when resolving php-src artifact
72
- define('SPC_BUILD_PHP_VERSION', $php_ver);
73
-
74
// Download new PHP source
75
$this->output->writeln("<info>Downloading PHP {$php_ver} source...</info>");
76
+ $this->input->setOption('with-php', $php_ver);
+
77
$downloaderOptions = DownloaderOptions::extractFromConsoleOptions($this->input->getOptions());
78
$downloader = new ArtifactDownloader($downloaderOptions);
79
0 commit comments