diff --git a/src/sentry/src/Util/SafeCaller.php b/src/sentry/src/Util/SafeCaller.php index 5314b17c1..fa8ed548a 100644 --- a/src/sentry/src/Util/SafeCaller.php +++ b/src/sentry/src/Util/SafeCaller.php @@ -21,7 +21,12 @@ class SafeCaller { /** * Example - * $data['scores'] = FriendsOfHyperf\Sentry\Util\SafeCaller::call(fn () => di(ScoresInterface::class)->get(), 'default');. + * $data['scores'] = di(FriendsOfHyperf\Sentry\Util\SafeCaller::class)->call(fn () => time(), 'default');. + * + * @template TReturn + * + * @param Closure(): TReturn $closure + * @return TReturn|mixed */ public function call(Closure $closure, mixed $default = null, ?Closure $exceptionHandler = null): mixed {