From 01c2848a836baf3844256afe5c4552190496d0af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 11 Sep 2024 14:23:23 +0200 Subject: [PATCH] Fix deprecated method in redis --- .../Security/PasswordRecover/PasswordRecoverLocker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillMainBundle/Security/PasswordRecover/PasswordRecoverLocker.php b/src/Bundle/ChillMainBundle/Security/PasswordRecover/PasswordRecoverLocker.php index 11d14c374..30121bc38 100644 --- a/src/Bundle/ChillMainBundle/Security/PasswordRecover/PasswordRecoverLocker.php +++ b/src/Bundle/ChillMainBundle/Security/PasswordRecover/PasswordRecoverLocker.php @@ -65,7 +65,7 @@ class PasswordRecoverLocker if (0 === $this->chillRedis->exists($key)) { $this->chillRedis->set($key, 1); - $this->chillRedis->setTimeout($key, $ttl); + $this->chillRedis->expire($key, $ttl); break; }