Make Serializable implementation internal and final
This commit is contained in:
parent
29d51cad6f
commit
a5e8e7d5e0
@ -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
|
* Deprecate using `SessionTokenStorage` outside a request context, it will throw a `SessionNotFoundException` in Symfony 6.0
|
||||||
* Randomize CSRF tokens to harden BREACH attacks
|
* Randomize CSRF tokens to harden BREACH attacks
|
||||||
* Deprecated voters that do not return a valid decision when calling the `vote` method.
|
* 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
|
5.2.0
|
||||||
-----
|
-----
|
||||||
|
@ -103,6 +103,9 @@ class NullToken implements TokenInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return string
|
* @return string
|
||||||
|
*
|
||||||
|
* @internal in 5.3
|
||||||
|
* @final in 5.3
|
||||||
*/
|
*/
|
||||||
public function serialize()
|
public function serialize()
|
||||||
{
|
{
|
||||||
@ -111,6 +114,9 @@ class NullToken implements TokenInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
|
* @internal in 5.3
|
||||||
|
* @final in 5.3
|
||||||
*/
|
*/
|
||||||
public function unserialize($serialized)
|
public function unserialize($serialized)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user