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

Commit 168eb01

Browse files
committed
Merge pull request #12 from mheijkoop/versioncheck
Use version_compare rather than <
2 parents e72c179 + 9cafae6 commit 168eb01

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)