From a5e8e7d5e0526942b5e7958094c1e6db7e78f9d9 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Mon, 3 May 2021 17:52:09 +0200 Subject: [PATCH] Make Serializable implementation internal and final --- src/Symfony/Component/Security/CHANGELOG.md | 1 + .../Security/Core/Authentication/Token/NullToken.php | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/Symfony/Component/Security/CHANGELOG.md b/src/Symfony/Component/Security/CHANGELOG.md index dbfcb931ae..b143c899f9 100644 --- a/src/Symfony/Component/Security/CHANGELOG.md +++ b/src/Symfony/Component/Security/CHANGELOG.md @@ -34,6 +34,7 @@ The CHANGELOG for version 5.4 and newer can be found in the security sub-package * Deprecate using `SessionTokenStorage` outside a request context, it will throw a `SessionNotFoundException` in Symfony 6.0 * Randomize CSRF tokens to harden BREACH attacks * Deprecated voters that do not return a valid decision when calling the `vote` method. + * Flag `Serializable` implementation of `NullToken` as `@internal` and `@final` 5.2.0 ----- diff --git a/src/Symfony/Component/Security/Core/Authentication/Token/NullToken.php b/src/Symfony/Component/Security/Core/Authentication/Token/NullToken.php index 5c8a1c24b1..4393f0bdbb 100644 --- a/src/Symfony/Component/Security/Core/Authentication/Token/NullToken.php +++ b/src/Symfony/Component/Security/Core/Authentication/Token/NullToken.php @@ -103,6 +103,9 @@ class NullToken implements TokenInterface /** * @return string + * + * @internal in 5.3 + * @final in 5.3 */ public function serialize() { @@ -111,6 +114,9 @@ class NullToken implements TokenInterface /** * @return void + * + * @internal in 5.3 + * @final in 5.3 */ public function unserialize($serialized) {