Skip to content

Commit 2e780b6

Browse files
committed
minor symfony#20691 [Serializer] Add deprecation missing from UPGRADE files (ogizanagi, javiereguiluz)
This PR was merged into the 3.2 branch. Discussion ---------- [Serializer] Add deprecation missing from UPGRADE files | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no, simply mention one in upgrade files | Tests pass? | yes | Fixed tickets | N/A | License | MIT | Doc PR | N/A Commits ------- d681c1a Lines length should be 80 or less characters 597bbdc Lines length should be 80 or less characters 4514c1b [Serializer] Add deprecation missing from UPGRADE files
2 parents f8b2a18 + d681c1a commit 2e780b6

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

UPGRADE-3.2.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@ HttpKernel
112112
```
113113
Surrogate-Capability: symfony="ESI/1.0"
114114

115+
Serializer
116+
----------
117+
118+
* Method `AbstractNormalizer::instantiateObject()` will have a 6th
119+
`$format = null` argument in Symfony 4.0. Not defining it when overriding
120+
the method is deprecated.
121+
115122
TwigBridge
116123
----------
117124

UPGRADE-4.0.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ 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
175+
`AbstractNormalizer::instantiateObject()` method when overriding it is not
176+
supported anymore.
173177

174178
Translation
175179
-----------

0 commit comments

Comments
 (0)