mirror of
https://github.com/flarum/framework.git
synced 2025-02-18 12:33:22 +08:00
phpversion minimum requirement changed in wrong location for installation
This commit is contained in:
parent
eaf98ccfc5
commit
0f5ddc1c43
|
@ -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',
|
||||
|
|
|
@ -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.',
|
||||
|
|
Loading…
Reference in New Issue
Block a user