Skip to content

Commit

Permalink
Update Cookie.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ismaileke authored Jul 30, 2024
1 parent 1c94a8c commit 440196c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/utils/Cookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@


final class Cookie{


/**
* @var (string|int)[] $cookies
*/
private static array $cookies = [];

public static function get(InternetAddress $address) : int{
Expand Down Expand Up @@ -52,7 +55,7 @@ public static function check(InternetAddress $address, int $cookie) : bool{

public static function add(InternetAddress $address) : void{
if (!isset(self::$cookies[$address->toString()])) {
self::$cookies[$address->toString()] = self::generateCookie($address);
self::$cookies[$address->toString()] = self::generate($address);
}
}

Expand Down

0 comments on commit 440196c

Please sign in to comment.