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

Skip to content

[Cache] Fix compatibility with Redis 6.1.0 pre-releases #58169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Symfony/Component/Cache/Traits/Redis6ProxyTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace Symfony\Component\Cache\Traits;

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

public function hSet($key, $fields_and_vals): \Redis|false|int
public function hSet($key, ...$fields_and_vals): \Redis|false|int
{
return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->hSet(...\func_get_args());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace Symfony\Component\Cache\Traits;

if (version_compare(phpversion('redis'), '6.1.0', '>')) {
if (version_compare(phpversion('redis'), '6.1.0-dev', '>')) {
/**
* @internal
*/
Expand Down