Skip to content

Commit 48c8ed9

Browse files
Merge branch '4.4' into 5.3
* 4.4: fix cs Update validators.lv.xlf Update validators.uz.xlf [ExpressionLanguage] Fix LexerTest number types [Process] intersect with getenv() to populate default envs Improve CI script a bit [Cache] fix dbindex Redis Never rely on dynamic properties
2 parents d3b414c + a7f51f1 commit 48c8ed9

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Exception/AuthenticationException.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,17 @@
2121
*/
2222
class AuthenticationException extends RuntimeException
2323
{
24+
/** @internal */
25+
protected $serialized;
26+
2427
private $token;
2528

29+
public function __construct(string $message = '', int $code = 0, \Throwable $previous = null)
30+
{
31+
unset($this->serialized);
32+
parent::__construct($message, $code, $previous);
33+
}
34+
2635
/**
2736
* Get the token.
2837
*

Tests/Exception/CustomUserMessageAuthenticationExceptionTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
class ChildCustomUserMessageAuthenticationException extends CustomUserMessageAuthenticationException
1919
{
20+
public $childMember;
21+
2022
public function __serialize(): array
2123
{
2224
return [$this->childMember, parent::__serialize()];

0 commit comments

Comments
 (0)