Skip to content

Commit

Permalink
Storage::read() added return typehint (BC break)
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jan 21, 2023
1 parent 5b8a8eb commit fb22e28
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Caching/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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().
Expand Down

0 comments on commit fb22e28

Please sign in to comment.