8000 [Serializer] Add deprecation missing from UPGRADE files · symfony/symfony@4514c1b · GitHub
[go: up one dir, main page]

Skip to content

Commit 4514c1b

Browse files
committed
[Serializer] Add deprecation missing from UPGRADE files
1 parent 0e12427 commit 4514c1b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

UPGRADE-3.2.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ HttpFoundation
116116
- `isInvalid`/`isSuccessful`/`isRedirection`/`isClientError`/`isServerError`
117117
- `isOk`/`isForbidden`/`isNotFound`/`isRedirect`/`isEmpty`
118118

119+
Serializer
120+
----------
121+
122+
* Method `AbstractNormalizer::instantiateObject()` will have a 6th `$format = null` argument in Symfony 4.0. Not defining it when overriding the method is deprecated.
123+
119124
TwigBridge
120125
----------
121126

UPGRADE-4.0.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ Serializer
170170
* The ability to pass a Doctrine `Cache` instance to the `ClassMetadataFactory`
171171
class has been removed. You should use the `CacheClassMetadataFactory` class
172172
instead.
173+
174+
* Not defining the 6th argument `$format = null` of the `AbstractNormalizer::instantiateObject()` method when overriding it is not supported anymore.
173175

174176
Translation
175177
-----------

0 commit comments

Comments
 (0)
0