Skip to content

Commit 80ae66a

Browse files
committed
Storage::read() added return typehint (BC break)
1 parent bf8b8d2 commit 80ae66a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Caching/Storage.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ interface Storage
1717
{
1818
/**
1919
* Read from cache.
20-
* @return mixed
2120
*/
22-
function read(string $key);
21+
function read(string $key): mixed;
2322

2423
/**
2524
* Prevents item reading and writing. Lock is released by write() or remove().

0 commit comments

Comments
 (0)