Skip to content

Commit ddc699e

Browse files
authored
fix: preserve assert_return generic type (#84)
1 parent c810866 commit ddc699e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/assert.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
use function assert;
1010

1111
/**
12-
* @param TValue $assertionFn
12+
* @param TValue $value
1313
* @param callable(TValue):(bool|string) $assertionFn
1414
*
15+
* @return TValue
16+
*
1517
* @template TValue
1618
*/
1719
function assert_return(mixed $value, callable $assertionFn, Throwable|string|null $description = null): mixed

0 commit comments

Comments
 (0)