mirror of
https://github.com/flarum/core.git
synced 2025-08-02 14:37:49 +02:00
phpversion minimum requirement changed in wrong location for installation
This commit is contained in:
@@ -31,7 +31,7 @@ class InstallServiceProvider extends AbstractServiceProvider
|
|||||||
PrerequisiteInterface::class,
|
PrerequisiteInterface::class,
|
||||||
function () {
|
function () {
|
||||||
return new Composite(
|
return new Composite(
|
||||||
new PhpVersion('5.5.0'),
|
new PhpVersion('7.1.0'),
|
||||||
new PhpExtensions([
|
new PhpExtensions([
|
||||||
'dom',
|
'dom',
|
||||||
'fileinfo',
|
'fileinfo',
|
||||||
|
@@ -22,7 +22,7 @@ class PhpVersion extends AbstractPrerequisite
|
|||||||
|
|
||||||
public function check()
|
public function check()
|
||||||
{
|
{
|
||||||
if (version_compare(PHP_VERSION, '5.5.0', '<')) {
|
if (version_compare(PHP_VERSION, $this->minVersion, '<')) {
|
||||||
$this->errors[] = [
|
$this->errors[] = [
|
||||||
'message' => "PHP $this->minVersion is required.",
|
'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.',
|
'detail' => 'You are running version '.PHP_VERSION.'. Talk to your hosting provider about upgrading to the latest PHP version.',
|
||||||
|
Reference in New Issue
Block a user