From 3f5e1e012bd741e54f120d2a57e00edae496948e Mon Sep 17 00:00:00 2001 From: David Grudl Date: Fri, 13 Jan 2023 04:41:43 +0100 Subject: [PATCH] Storage::read() added return typehint (BC break) --- src/Caching/Storage.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Caching/Storage.php b/src/Caching/Storage.php index e9565d8b..16b80942 100644 --- a/src/Caching/Storage.php +++ b/src/Caching/Storage.php @@ -17,9 +17,8 @@ interface Storage { /** * Read from cache. - * @return mixed */ - function read(string $key); + function read(string $key): mixed; /** * Prevents item reading and writing. Lock is released by write() or remove().