Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Commit 9cafae6

Browse files
committed
Use version_compare rather than <
If version_compare is absent, we're on <4.1.0 which is definitely insufficient.
1 parent e72c179 commit 9cafae6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

parallel-lint.php

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
use JakubOnderka\PhpParallelLint;
33

4-
if (PHP_VERSION < '5.3.2') {
5-
die("PHP Parallel Lint require PHP 5.3.2 or newer.");
4+
if (!function_exists('version_compare') || version_compare(PHP_VERSION, '5.3.2', '<')) {
5+
die("PHP Parallel Lint require PHP 5.3.2 or newer.\n");
66
}
77

88
const SUCCESS = 0,

0 commit comments

Comments
 (0)