From 78ddfef1a7068cf4f75d09e5f997b3fad6ed4f09 Mon Sep 17 00:00:00 2001 From: Iltar van der Berg Date: Mon, 11 Apr 2016 09:05:59 +0200 Subject: [PATCH] Fixed an array notation in comment (serializer.rst) --- components/serializer.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/serializer.rst b/components/serializer.rst index 80ca7df9041..9daf8c4c26c 100644 --- a/components/serializer.rst +++ b/components/serializer.rst @@ -300,7 +300,7 @@ You are now able to serialize only attributes in the groups you want:: $serializer = new Serializer(array($normalizer)); $data = $serializer->normalize($obj, null, array('groups' => array('group1'))); - // $data = ['foo' => 'foo']; + // $data = array('foo' => 'foo'); $obj2 = $serializer->denormalize( array('foo' => 'foo', 'bar' => 'bar'),