Skip to content

Commit

Permalink
Values may be null
Browse files Browse the repository at this point in the history
  • Loading branch information
francoism90 authored Oct 10, 2024
1 parent 4f0aac5 commit f965cfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Exceptions/RateLimitedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
class RateLimitedException extends Exception
{
public function __construct(
public string $ip,
public int $seconds,
public ?string $ip = null,
public ?int $seconds = null,
) {
parent::__construct(sprintf(
'Too many requests from [%s]. Retry in %d seconds.',
Expand Down

0 comments on commit f965cfe

Please sign in to comment.