diff --git a/CHANGELOG.md b/CHANGELOG.md index 061f1cd..015d3af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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*() diff --git a/src/Stash/Store.php b/src/Stash/Store.php index da94bca..5b24e8d 100644 --- a/src/Stash/Store.php +++ b/src/Stash/Store.php @@ -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,