Skip to content

Commit

Permalink
Merge branch 'release/v0.5.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
betterthanclay committed Mar 22, 2024
2 parents d80d0a8 + 4d64552 commit 5047ba8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v0.5.1 (2024-03-22)
* Added generic return type to fetch()

## v0.5.0 (2024-03-22)
* Renamed FileStore multi-get methods to scan*()

Expand Down
4 changes: 3 additions & 1 deletion src/Stash/Store.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ public function getNamespace(): string;
public function getDriver(): Driver;

/**
* @param Closure(Item, Store): mixed $generator
* @template T
* @param Closure(Item, Store): T $generator
* @return T
*/
public function fetch(
string $key,
Expand Down

0 comments on commit 5047ba8

Please sign in to comment.