Fix PHP Fatal error

This commit is contained in:
slawkens 2024-10-27 20:40:48 +01:00
parent a0f1971583
commit c49c9d99a9

View File

@ -10,7 +10,7 @@ class RateLimit
public int $max_attempts; public int $max_attempts;
public int $ttl; public int $ttl;
public $enabled = false; public $enabled = false;
protected array $data; protected array $data = [];
public function __construct(string $key, int $max_attempts, int $ttl) public function __construct(string $key, int $max_attempts, int $ttl)
{ {