8000 [Cache] Fix compatibility with Redis 6.1.0 pre-releases · symfony/cache@b4452a1 · GitHub
[go: up one dir, main page]

Skip to content

Commit b4452a1

Browse files
cedric-annefabpot
authored andcommitted
[Cache] Fix compatibility with Redis 6.1.0 pre-releases
1 parent 36daef8 commit b4452a1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Traits/Redis6ProxyTrait.php

Lines 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
}

Traits/RedisCluster6ProxyTrait.php

Lines changed: 1 addition & 1 deletion
Original fil 6A26 e 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