Skip to content

Commit b6ff133

Browse files
Merge branch '5.3' into 5.4
* 5.3: fix cs Update validators.lv.xlf Fix API gateway service name Fix CS in composer.json Update validators.uz.xlf [ExpressionLanguage] Fix LexerTest number types [Process] intersect with getenv() to populate default envs Improve CI script a bit Fix Loco Provider [Cache] fix dbindex Redis Fix typos in a test message Never rely on dynamic properties
2 parents 5ac4efa + 48c8ed9 commit b6ff133

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
* @return TokenInterface|null
2837
*/

Tests/Exception/CustomUserMessageAuthenticationExceptionTest.php

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

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

0 commit comments

Comments
 (0)