Skip to content

Commit

Permalink
add version_compare
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Oct 15, 2022
1 parent a7ece6f commit 3ae672f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions html-minifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

require_once $autoload;

version_compare($ver = PHP_VERSION, $req = '7.1.3', '<') and exit(sprintf('You are running PHP %s, but plugin needs at least <strong>PHP %s</strong> to run.', $ver, $req));

class HtmlMinifier {

private static array $options = [];
Expand Down

0 comments on commit 3ae672f

Please sign in to comment.