Skip to content

Commit 9d71202

Browse files
authored
refactor: Add type hinting to tap function and HigherOrderTapProxy class (#6922)
1 parent b62a24c commit 9d71202

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Functions.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ function retry($times, callable $callback, int $sleep = 0)
9595
/**
9696
* Return the given value, optionally passed through the given callback.
9797
*
98-
* @param mixed $value
98+
* @template TValue
99+
*
100+
* @param TValue $value
101+
* @return ($callback is null ? TValue : mixed)
99102
*/
100103
function with($value, ?callable $callback = null)
101104
{

0 commit comments

Comments
 (0)