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
SimpleXML is using 1 and 0 for booleans but the JMS serializer doesn't accept these literals. Is there a reason why only the canonical representation is supported?
...
$dom = new \SimpleXMLElement($xml);
$dom->aboolean = true;
$xml = $dom->saveXML();
...
// an instance of the JMS serializer
$deserializer->deserialize($xml, 'My\Model');
JMS\Serializer\Exception\RuntimeException
Could not convert data to boolean. Expected "true", or "false", but got "1".
The text was updated successfully, but these errors were encountered:
SimpleXML is using 1 and 0 for booleans but the JMS serializer doesn't accept these literals. Is there a reason why only the canonical representation is supported?
The text was updated successfully, but these errors were encountered: