phpversion minimum requirement changed in wrong location for installation

This commit is contained in:
Daniel Klabbers 2018-06-28 11:40:34 +02:00
parent eaf98ccfc5
commit 0f5ddc1c43
2 changed files with 2 additions and 2 deletions

View File

@ -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',

View File

@ -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.',