Skip to content

Commit 7846a0e

Browse files
committed
Storage::read() added return typehint (BC break)
1 parent 59e0fd2 commit 7846a0e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Caching/Storage.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ interface Storage
1515
{
1616
/**
1717
* Read from cache.
18-
* @return mixed
1918
*/
20-
function read(string $key);
19+
function read(string $key): mixed;
2120

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

0 commit comments

Comments
 (0)