Skip to content

Commit 70285cb

Browse files
committed
actually update to 8.5
1 parent a335d05 commit 70285cb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/SPC/command/DownloadCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function configure(): void
3030
$this->addArgument('sources', InputArgument::REQUIRED, 'The sources will be compiled, comma separated');
3131
$this->addOption('shallow-clone', null, null, 'Clone shallow');
3232
$this->addOption('with-openssl11', null, null, 'Use openssl 1.1');
33-
$this->addOption('with-php', null, InputOption::VALUE_REQUIRED, 'version in major.minor format (default 8.4)', '8.4');
33+
$this->addOption('with-php', null, InputOption::VALUE_REQUIRED, 'version in major.minor format (default 8.5)', '8.5');
3434
$this->addOption('clean', null, null, 'Clean old download cache and source before fetch');
3535
$this->addOption('all', 'A', null, 'Fetch all sources that static-php-cli needed');
3636
$this->addOption('custom-url', 'U', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'Specify custom source download url, e.g "php-src:https://downloads.php.net/~eric/php-8.3.0beta1.tar.gz"');

src/SPC/util/ConfigValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ public static function validateAndParseCraftFile(mixed $craft_file, Command $com
393393
}
394394
// check php-version
395395
if (isset($craft['php-version'])) {
396-
// validdate version, accept 8.x, 7.x, 8.x.x, 7.x.x, 8, 7
396+
// validate version, accept 8.x, 7.x, 8.x.x, 7.x.x, 8, 7
397397
$version = strval($craft['php-version']);
398398
if (!preg_match('/^(\d+)(\.\d+)?(\.\d+)?$/', $version, $matches)) {
399399
throw new ValidationException('Craft file php-version is invalid');

0 commit comments

Comments
 (0)