You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #10831 [Serializer] XmlEncoder example fix (vertisan)
This PR was merged into the 4.2 branch.
Discussion
----------
[Serializer] XmlEncoder example fix
Currently in example:
```
$encoder = new XmlEncoder();
$encoder->encode(array('foo' => array('@bar' => 'value'), 'qux' => array('#comment' => 'A comment));
```
we'll get `Parse error: syntax error, unexpected '', $serialized); ' (T_CONSTANT_ENCAPSED_STRING), expecting ')'`.
After close `A comment` string and add missing `$format`, it works correctly.
```
$encoder->encode(array('foo' => array('@bar' => 'value'), 'qux' => array('#comment' => 'A comment')), 'xml');
```
Commits
-------
9df531a XmlEncoder example fix
0 commit comments