From 0f5ddc1c4392c98d5ddd768d10d4b5cd643f39ed Mon Sep 17 00:00:00 2001 From: Daniel Klabbers Date: Thu, 28 Jun 2018 11:40:34 +0200 Subject: [PATCH] phpversion minimum requirement changed in wrong location for installation --- src/Install/InstallServiceProvider.php | 2 +- src/Install/Prerequisite/PhpVersion.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Install/InstallServiceProvider.php b/src/Install/InstallServiceProvider.php index e110527e5..321e29058 100644 --- a/src/Install/InstallServiceProvider.php +++ b/src/Install/InstallServiceProvider.php @@ -31,7 +31,7 @@ class InstallServiceProvider extends AbstractServiceProvider PrerequisiteInterface::class, function () { return new Composite( - new PhpVersion('5.5.0'), + new PhpVersion('7.1.0'), new PhpExtensions([ 'dom', 'fileinfo', diff --git a/src/Install/Prerequisite/PhpVersion.php b/src/Install/Prerequisite/PhpVersion.php index df230e4be..b2960d372 100644 --- a/src/Install/Prerequisite/PhpVersion.php +++ b/src/Install/Prerequisite/PhpVersion.php @@ -22,7 +22,7 @@ class PhpVersion extends AbstractPrerequisite public function check() { - if (version_compare(PHP_VERSION, '5.5.0', '<')) { + if (version_compare(PHP_VERSION, $this->minVersion, '<')) { $this->errors[] = [ 'message' => "PHP $this->minVersion is required.", 'detail' => 'You are running version '.PHP_VERSION.'. Talk to your hosting provider about upgrading to the latest PHP version.',