Skip to content

Commit 06e994e

Browse files
lucasmichotLucas Michot
andauthored
use version_compare function (#59687)
Co-authored-by: Lucas Michot <lucas@zaiple.com>
1 parent 330608c commit 06e994e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/Integration/Database/MySql/JoinLateralTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ protected function checkMySqlVersion()
5858

5959
if (str_contains($mySqlVersion, 'Maria')) {
6060
$this->markTestSkipped('Lateral joins are not supported on MariaDB'.__CLASS__);
61-
} elseif ((float) $mySqlVersion < '8.0.14') {
61+
} elseif (version_compare($mySqlVersion, '8.0.14', '<')) {
6262
$this->markTestSkipped('Lateral joins are not supported on MySQL < 8.0.14'.__CLASS__);
6363
}
6464
}

0 commit comments

Comments
 (0)