From 4514c1b0c487c061a0fd2d18afe0f2c6a7e2388b Mon Sep 17 00:00:00 2001 From: Maxime Steinhausser Date: Tue, 29 Nov 2016 21:18:47 +0100 Subject: [PATCH] [Serializer] Add deprecation missing from UPGRADE files --- UPGRADE-3.2.md | 5 +++++ UPGRADE-4.0.md | 2 ++ 2 files changed, 7 insertions(+) diff --git a/UPGRADE-3.2.md b/UPGRADE-3.2.md index f4b043c754..5862071d94 100644 --- a/UPGRADE-3.2.md +++ b/UPGRADE-3.2.md @@ -116,6 +116,11 @@ HttpFoundation - `isInvalid`/`isSuccessful`/`isRedirection`/`isClientError`/`isServerError` - `isOk`/`isForbidden`/`isNotFound`/`isRedirect`/`isEmpty` +Serializer +---------- + + * Method `AbstractNormalizer::instantiateObject()` will have a 6th `$format = null` argument in Symfony 4.0. Not defining it when overriding the method is deprecated. + TwigBridge ---------- diff --git a/UPGRADE-4.0.md b/UPGRADE-4.0.md index 483b7e6ed1..227e9b93f3 100644 --- a/UPGRADE-4.0.md +++ b/UPGRADE-4.0.md @@ -170,6 +170,8 @@ Serializer * The ability to pass a Doctrine `Cache` instance to the `ClassMetadataFactory` class has been removed. You should use the `CacheClassMetadataFactory` class instead. + + * Not defining the 6th argument `$format = null` of the `AbstractNormalizer::instantiateObject()` method when overriding it is not supported anymore. Translation -----------