From 3728a9dc7c44350ed3dd205f7f8253f97999501e Mon Sep 17 00:00:00 2001 From: Sebastiaan Kloos Date: Tue, 7 Nov 2023 14:25:08 +0100 Subject: [PATCH] added option to disable after --- src/Ray.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ray.php b/src/Ray.php index 33310fe..b673f5d 100644 --- a/src/Ray.php +++ b/src/Ray.php @@ -859,7 +859,7 @@ protected function notifyWhenRateLimitReached(): void self::rateLimiter()->notify(); } - public static function beforeSendRequest(Closure $closure): void + public static function beforeSendRequest(null|Closure $closure): void { static::$beforeSendRequest = $closure; }