mirror of
https://github.com/getgrav/grav.git
synced 2026-05-13 02:57:08 +02:00
Exit instead of throwing exception when PHP < 5.4.0
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
namespace Grav\Common;
|
||||
|
||||
if (version_compare($ver = PHP_VERSION, $req = '5.4.0', '<')) {
|
||||
throw new \RuntimeException(sprintf('You are running PHP %s, but Grav needs at least <strong>PHP %s</strong> to run.', $ver, $req));
|
||||
exit(sprintf('You are running PHP %s, but Grav needs at least <strong>PHP %s</strong> to run.', $ver, $req));
|
||||
}
|
||||
|
||||
use Tracy\Debugger;
|
||||
|
||||
Reference in New Issue
Block a user