1
0
mirror of https://github.com/flarum/core.git synced 2025-10-22 12:16:07 +02:00
Files
php-flarum/src/Install/Prerequisites/PhpVersion.php
2015-09-03 08:42:16 +02:00

25 lines
666 B
PHP

<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Install\Prerequisites;
class PhpVersion extends AbstractPrerequisite
{
public function check()
{
if (version_compare(PHP_VERSION, '5.5.0', '<')) {
$this->errors[] = [
'message' => 'PHP 5.5+ is required.',
'detail' => 'You are running version '.PHP_VERSION.'. Talk to your hosting provider about upgrading to the latest PHP version.'
];
}
}
}