From 369f9ae3188cb7c25cfda3c7de02364df53bce4b Mon Sep 17 00:00:00 2001 From: Xurshudyan Date: Fri, 1 Nov 2024 17:29:00 +0400 Subject: [PATCH] Enhance helper with improved type inference --- src/Illuminate/Support/helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Support/helpers.php b/src/Illuminate/Support/helpers.php index 7e2b3d9bc570..fc780ed40472 100644 --- a/src/Illuminate/Support/helpers.php +++ b/src/Illuminate/Support/helpers.php @@ -369,7 +369,7 @@ public function __toString() * * @param TValue $value * @param (callable(TValue): mixed)|null $callback - * @return ($callback is null ? \Illuminate\Support\HigherOrderTapProxy : TValue) + * @return TValue|\Illuminate\Support\HigherOrderTapProxy */ function tap($value, $callback = null) {