Skip to content

Commit 4d1678e

Browse files
author
Hugo Hamon
committed
[Serializer] fixes the order of the Serializer constructor arguments.
1 parent 164ce27 commit 4d1678e

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)