Skip to content

Commit

Permalink
added option to disable after
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastiaanKloos committed Nov 7, 2023
1 parent fb8d01f commit 3728a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ray.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3728a9d

Please sign in to comment.