@@ -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.3 ) ' , '8.3 ' );
33+ $ this ->addOption ('with-php ' , null , InputOption::VALUE_REQUIRED , 'version in major.minor format (default 8.4 ) ' , '8.4 ' );
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" ' );
@@ -118,7 +118,7 @@ public function handle(): int
118118 }
119119
120120 // Define PHP major version
121- $ ver = $ this ->php_major_ver = $ this ->getOption ('with-php ' ) ?? ' 8.1 ' ;
121+ $ ver = $ this ->php_major_ver = $ this ->getOption ('with-php ' );
122122 define ('SPC_BUILD_PHP_VERSION ' , $ ver );
123123 // match x.y
124124 preg_match ('/^\d+\.\d+$/ ' , $ ver , $ matches );
0 commit comments