From 3bb0c868d9eb348b1c7656b1c4d9db83101418f5 Mon Sep 17 00:00:00 2001 From: Simon Podlipsky Date: Thu, 23 Apr 2026 12:13:19 +0200 Subject: [PATCH] fix: preserve assert_return generic type --- src/assert.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/assert.php b/src/assert.php index 10da192..0b1cd98 100644 --- a/src/assert.php +++ b/src/assert.php @@ -9,9 +9,11 @@ use function assert; /** - * @param TValue $assertionFn + * @param TValue $value * @param callable(TValue):(bool|string) $assertionFn * + * @return TValue + * * @template TValue */ function assert_return(mixed $value, callable $assertionFn, Throwable|string|null $description = null): mixed