Fix version check during install. Fixes #1224

This commit is contained in:
Martijn Engler 2022-10-02 11:57:59 +02:00
parent 04a4d959fd
commit 56b992609c
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ class InstallController extends AbstractController
} else {
$this->addMessage('PHP version: ' . $phpv, 'success');
}
if (version_compare(PHP_RELEASE_VERSION, '7', '<')) {
if (version_compare(PHP_MAJOR_VERSION, '7', '<')) {
$this->addMessage(
'PHP 5 reaches the end of life (January 1, 2019), please update to PHP 7.
PHP supported versions can be found