CheckRequirementsCommand now recommends PHP 8.2

This commit is contained in:
Jan Böhmer 2023-05-27 20:07:03 +02:00
parent 4e9d93957e
commit cd1413a74e

View file

@ -70,7 +70,8 @@ class CheckRequirementsCommand extends Command
{ {
//Check PHP versions //Check PHP versions
$io->isVerbose() && $io->comment('Checking PHP version...'); $io->isVerbose() && $io->comment('Checking PHP version...');
if (PHP_VERSION_ID < 80100) { //We recommend PHP 8.2, but 8.1 is the minimum
if (PHP_VERSION_ID < 80200) {
$io->warning('You are using PHP '. PHP_VERSION .'. This will work, but a newer version is recommended.'); $io->warning('You are using PHP '. PHP_VERSION .'. This will work, but a newer version is recommended.');
} else { } else {
!$only_issues && $io->success('PHP version is sufficient.'); !$only_issues && $io->success('PHP version is sufficient.');