diff --git a/lib/requirements.php b/lib/requirements.php index aab66dc..81bf127 100644 --- a/lib/requirements.php +++ b/lib/requirements.php @@ -6,7 +6,7 @@ if (!isset($reqsPassed)) { } // Check PHP version meets minimum requirements -if ((int) phpversion() < 7) { +if (version_compare(phpversion(), '7.0.0', '<')) { $reqsPassed = false; array_push($reqsFailures, "phpVersion"); } @@ -78,7 +78,7 @@ if (!$reqsPassed) { } ?> - +