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 9569a5f

Browse filesBrowse files
cedric-annefabpot
authored andcommitted
[Cache] Fix compatibility with Redis 6.1.0 pre-releases
1 parent a08f8a4 commit 9569a5f
Copy full SHA for 9569a5f

File tree

2 files changed

+3
-3
lines changed
Filter options

2 files changed

+3
-3
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Cache/Traits/Redis6ProxyTrait.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Component\Cache\Traits;
1313

14-
if (version_compare(phpversion('redis'), '6.1.0', '>=')) {
14+
if (version_compare(phpversion('redis'), '6.1.0-dev', '>=')) {
1515
/**
1616
* @internal
1717
*/
@@ -27,7 +27,7 @@ public function hRandField($key, $options = null): \Redis|array|string|false
2727
return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->hRandField(...\func_get_args());
2828
}
2929

30-
public function hSet($key, $fields_and_vals): \Redis|false|int
30+
public function hSet($key, ...$fields_and_vals): \Redis|false|int
3131
{
3232
return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->hSet(...\func_get_args());
3333
}

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Cache/Traits/RedisCluster6ProxyTrait.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Component\Cache\Traits;
1313

14-
if (version_compare(phpversion('redis'), '6.1.0', '>')) {
14+
if (version_compare(phpversion('redis'), '6.1.0-dev', '>')) {
1515
/**
1616
* @internal
1717
*/

0 commit comments

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