Skip to content

Commit d9a0d04

Browse files
committed
bug #5247 [2.7] [Serializer] fixes the order of the Serializer constructor arguments. (hhamon)
This PR was merged into the 2.7 branch. Discussion ---------- [2.7] [Serializer] fixes the order of the Serializer constructor arguments. Commits ------- 4d1678e [Serializer] fixes the order of the Serializer constructor arguments.
2 parents 164ce27 + 4d1678e commit d9a0d04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/serializer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ and :class:`Symfony\\Component\\Serializer\\Normalizer\\PropertyNormalizer`::
224224
$nameConverter = new OrgPrefixNameConverter();
225225
$normalizer = new PropertyNormalizer(null, $nameConverter);
226226

227-
$serializer = new Serializer(array(new JsonEncoder()), array($normalizer));
227+
$serializer = new Serializer(array($normalizer), array(new JsonEncoder()));
228228

229229
$obj = new Company();
230230
$obj->name = 'Acme Inc.';

0 commit comments

Comments
 (0)