Skip to content

Commit e79914a

Browse files
committed
minor symfony#53375 [Cache] synchronize RelayProxy (xabbuh)
This PR was merged into the 6.3 branch. Discussion ---------- [Cache] synchronize RelayProxy | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT Commits ------- 2771e7c synchronize RelayProxy
2 parents 51dad92 + 2771e7c commit e79914a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,12 +237,12 @@ public function info(...$sections): \Relay\Relay|array|false
237237
return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->info(...\func_get_args());
238238
}
239239

240-
public function flushdb($async = false): \Relay\Relay|bool
240+
public function flushdb($sync = null): \Relay\Relay|bool
241241
{
242242
return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->flushdb(...\func_get_args());
243243
}
244244

245-
public function flushall($async = false): \Relay\Relay|bool
245+
public function flushall($sync = null): \Relay\Relay|bool
246246
{
247247
return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->flushall(...\func_get_args());
248248
}
@@ -327,6 +327,11 @@ public function lastsave(): \Relay\Relay|false|int
327327
return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->lastsave(...\func_get_args());
328328
}
329329

330+
public function lcs($key1, $key2, $options = null): mixed
331+
{
332+
return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->lcs(...\func_get_args());
333+
}
334+
330335
public function bgsave($schedule = false): \Relay\Relay|bool
331336
{
332337
return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->bgsave(...\func_get_args());

0 commit comments

Comments
 (0)