Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 91bcc05

Browse files
committed
Use more readable version_compare
1 parent a585e7e commit 91bcc05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Cache/Traits/RedisTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public static function createConnection(string $dsn, array $options = [])
213213
break;
214214
}
215215

216-
if (version_compare(phpversion('redis'), '6.0.0') >= 0) {
216+
if (version_compare(phpversion('redis'), '6.0.0', '>=')) {
217217
$options = [
218218
'host' => $host,
219219
'port' => $port,

0 commit comments

Comments
 (0)