diff --git a/src/Ray.php b/src/Ray.php index e5be758..c0fb957 100644 --- a/src/Ray.php +++ b/src/Ray.php @@ -105,7 +105,7 @@ class Ray public static $projectName = ''; /** @var Closure|null */ - public static Closure|null $beforeSendRequest = null; + public static $beforeSendRequest = null; public static function create(Client $client = null, string $uuid = null): self { @@ -859,7 +859,7 @@ protected function notifyWhenRateLimitReached(): void self::rateLimiter()->notify(); } - public static function beforeSendRequest(Closure|null $closure): void + public static function beforeSendRequest(?Closure $closure = null): void { static::$beforeSendRequest = $closure; }