mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Exit instead of throwing exception when PHP < 5.4.0
This commit is contained in:
parent
fee9518134
commit
0c0cc03394
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user