Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 47c3103

Browse filesBrowse files
committed
Use more readable version_compare
1 parent a585e7e commit 47c3103
Copy full SHA for 47c3103

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Cache/Traits/RedisTrait.php
+1-1Lines 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', '>=') === true) {
217217
$options = [
218218
'host' => $host,
219219
'port' => $port,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.