Skip to content

Commit 47fb7fc

Browse files
authored
Merge pull request #20378 from xepozz/cache-type
1 parent 3eae599 commit 47fb7fc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

framework/caching/CacheInterface.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,12 @@ public function flush();
188188
* the corresponding value in the cache will be invalidated when it is fetched via [[get()]].
189189
* This parameter is ignored if [[serializer]] is `false`.
190190
* @return mixed result of $callable execution
191+
*
192+
* @template TResult of mixed
193+
* @psalm-param callable():TResult|\Closure():TResult $callable
194+
* @phpstan-param callable():TResult|\Closure():TResult $callable
195+
* @psalm-return TResult
196+
* @phpstan-return TResult
191197
*/
192198
public function getOrSet($key, $callable, $duration = null, $dependency = null);
193199
}

0 commit comments

Comments
 (0)