From 511d55082c73e6b8bf9d8534b7f565323305346b Mon Sep 17 00:00:00 2001 From: Sasule84 Date: Mon, 10 Nov 2025 09:12:12 +0100 Subject: [PATCH] Hotfix: Wrong number of parameters for del command. `$this->journal->clean(...)` can produce empty array which causes an error when calling Redis del command. --- src/Caching/RedisStorage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Caching/RedisStorage.php b/src/Caching/RedisStorage.php index 9edab0f..9d79b84 100644 --- a/src/Caching/RedisStorage.php +++ b/src/Caching/RedisStorage.php @@ -199,7 +199,7 @@ public function clean(array $conditions): void // cleaning using journal if ($this->journal !== null) { $keys = $this->journal->clean($conditions); - if ($keys !== null) { + if ($keys !== null && $keys !== []) { $this->client->del($keys); } }