diff --git a/src/StaticPHP/Artifact/Downloader/Type/PhpRelease.php b/src/StaticPHP/Artifact/Downloader/Type/PhpRelease.php index b1fad70e..8368c409 100644 --- a/src/StaticPHP/Artifact/Downloader/Type/PhpRelease.php +++ b/src/StaticPHP/Artifact/Downloader/Type/PhpRelease.php @@ -24,7 +24,7 @@ class PhpRelease implements DownloadTypeInterface, ValidatorInterface, CheckUpda public function download(string $name, array $config, ArtifactDownloader $downloader): DownloadResult { - $phpver = $downloader->getOption('with-php', '8.4'); + $phpver = $downloader->getOption('with-php', '8.5'); // Handle 'git' version to clone from php-src repository if ($phpver === 'git') { $this->sha256 = null; @@ -74,7 +74,7 @@ class PhpRelease implements DownloadTypeInterface, ValidatorInterface, CheckUpda public function checkUpdate(string $name, array $config, ?string $old_version, ArtifactDownloader $downloader): CheckUpdateResult { - $phpver = $downloader->getOption('with-php', '8.4'); + $phpver = $downloader->getOption('with-php', '8.5'); if ($phpver === 'git') { // git version: delegate to Git checkUpdate with master branch return (new Git())->checkUpdate($name, ['url' => 'https://github.com/php/php-src.git', 'rev' => 'master'], $old_version, $downloader); @@ -90,7 +90,7 @@ class PhpRelease implements DownloadTypeInterface, ValidatorInterface, CheckUpda protected function fetchPhpReleaseInfo(string $name, array $config, ArtifactDownloader $downloader): array { - $phpver = $downloader->getOption('with-php', '8.4'); + $phpver = $downloader->getOption('with-php', '8.5'); // Handle 'git' version to clone from php-src repository if ($phpver === 'git') { // cannot fetch release info for git version, return empty info to skip validation diff --git a/src/StaticPHP/Artifact/DownloaderOptions.php b/src/StaticPHP/Artifact/DownloaderOptions.php index 3e00d3b3..47c960ef 100644 --- a/src/StaticPHP/Artifact/DownloaderOptions.php +++ b/src/StaticPHP/Artifact/DownloaderOptions.php @@ -52,7 +52,7 @@ class DownloaderOptions return [ // php version option - new InputOption("{$p}with-php", null, InputOption::VALUE_REQUIRED, 'PHP version in major.minor format (default 8.4)', '8.4'), + new InputOption("{$p}with-php", null, InputOption::VALUE_REQUIRED, 'PHP version in major.minor format (default 8.5)', '8.5'), // download preference options new InputOption("{$p}prefer-source", null, InputOption::VALUE_OPTIONAL, 'Prefer source downloads when both source and binary are available', false), diff --git a/src/StaticPHP/Command/CheckUpdateCommand.php b/src/StaticPHP/Command/CheckUpdateCommand.php index 1663337c..077da4f4 100644 --- a/src/StaticPHP/Command/CheckUpdateCommand.php +++ b/src/StaticPHP/Command/CheckUpdateCommand.php @@ -26,7 +26,7 @@ class CheckUpdateCommand extends BaseCommand $this->addOption('parallel', 'p', InputOption::VALUE_REQUIRED, 'Number of parallel update checks (default: 10)', 10); // --with-php option for checking updates with a specific PHP version context - $this->addOption('with-php', null, InputOption::VALUE_REQUIRED, 'PHP version in major.minor format (default 8.4)', '8.4'); + $this->addOption('with-php', null, InputOption::VALUE_REQUIRED, 'PHP version in major.minor format (default 8.5)', '8.5'); } public function handle(): int