fix version comparison in phpunit downloader

This commit is contained in:
Andreas Gohr 2021-02-04 23:14:57 +01:00
parent 57538c4b14
commit a5bc54e333
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ $phpVersion = PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION;
print "Running PHP $phpVersion\n";
if(version_compare($phpVersion, '7.2') < 1) {
if(version_compare($phpVersion, '7.2') < 0) {
echo 'we no longer support PHP versions < 7.2 and thus do not support tests on them';
exit(1);
}