Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d2326a4

Browse filesBrowse files
minor #41388 [Security] Add an upgrade note about the removal of Serializable (derrabus)
This PR was merged into the 5.2 branch. Discussion ---------- [Security] Add an upgrade note about the removal of Serializable | Q | A | ------------- | --- | Branch? | 5.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | N/A | License | MIT | Doc PR | N/A Jumping from Symfony 5 on PHP 7.2/7.3 to Symfony 6 on PHP 8 directly will fry your sessions. I've added a note that PHP should be upgraded first. I believe that most apps will take that patch anyway, so this shouldn't be much of a footgun. 🤞🏻 Commits ------- 7657258 Add an upgrade note about the removal of Serializable
2 parents 019b2c6 + 7657258 commit d2326a4
Copy full SHA for d2326a4

File tree

Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed

‎UPGRADE-6.0.md

Copy file name to clipboardExpand all lines: UPGRADE-6.0.md
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@ Security
158158
in `PreAuthenticatedToken`, `RememberMeToken`, `SwitchUserToken`, `UsernamePasswordToken`,
159159
`DefaultAuthenticationSuccessHandler`.
160160
* Removed the `AbstractRememberMeServices::$providerKey` property in favor of `AbstractRememberMeServices::$firewallName`
161+
* Authentication tokens do not implement the deprecated `Serializable`
162+
interface anymore. The consequence is that tokens that were serialized (e.g.
163+
into the session) with PHP 7.3 or below cannot be unserialized anymore. It is
164+
recommended to roll out a Symfony 5 application with PHP 7.4 or later first
165+
before upgrading it to Symfony 6.
161166

162167
TwigBundle
163168
----------

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.