Skip to content

Commit 8614a7b

Browse files
authored
.
1 parent 54f37f2 commit 8614a7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: serializer.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1874,7 +1874,7 @@ Preserving Empty Objetcs
18741874

18751875
By default, the Serializer will transform an empty array to `[]`.
18761876
You can change this behavior by setting the ``AbstractObjectNormalizer::PRESERVE_EMPTY_OBJECTS`` context option
1877-
to ``true``, the value would be `{}`.
1877+
to ``true``, when the value is `\ArrayObject()` the serialization would be `{}`.
18781878

18791879
Handling Uninitialized Properties
18801880
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)