Skip to content

Commit 280caaa

Browse files
Merge branch '6.4' into 7.0
* 6.4: More short closures + isset instead of null checks + etc.
2 parents a42fc8e + 86dc400 commit 280caaa

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;
@@ -100,23 +91,4 @@ public function getMessageData(): array
10091
{
10192
return [];
10293
}
103-
104-
/**
105-
* @internal
106-
*/
107-
public function __sleep(): array
108-
{
109-
$this->serialized = $this->__serialize();
110-
111-
return ['serialized'];
112-
}
113-
114-
/**
115-
* @internal
116-
*/
117-
public function __wakeup(): void
118-
{
119-
$this->__unserialize($this->serialized);
120-
unset($this->serialized);
121-
}
12294
}

0 commit comments

Comments
 (0)