Skip to content

Commit 86dc400

Browse files
More short closures + isset instead of null checks + etc.
1 parent 43f24cf commit 86dc400

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

Exception/AuthenticationException.php

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,8 @@
2323
#[WithHttpStatus(401)]
2424
class AuthenticationException extends RuntimeException
2525
{
26-
/** @internal */
27-
protected $serialized;
28-
2926
private ?TokenInterface $token = null;
3027

31-
public function __construct(string $message = '', int $code = 0, \Throwable $previous = null)
32-
{
33-
unset($this->serialized);
34-
parent::__construct($message, $code, $previous);
35-
}
36-
3728
public function getToken(): ?TokenInterface
3829
{
3930
return $this->token;
@@ -105,23 +96,4 @@ public function getMessageData(): array
10596
{
10697
return [];
10798
}
108-
109-
/**
110-
* @internal
111-
*/
112-
public function __sleep(): array
113-
{
114-
$this->serialized = $this->__serialize();
115-
116-
return ['serialized'];
117-
}
118-
119-
/**
120-
* @internal
121-
*/
122-
public function __wakeup(): void
123-
{
124-
$this->__unserialize($this->serialized);
125-
unset($this->serialized);
126-
}
12799
}

0 commit comments

Comments
 (0)