From the PHP manual of array_key_exists: For backward compatibility, the following deprecated alias may be used: key_exists().
@@ -198,7 +198,7 @@ class XmlEncoder extends SerializerAwareEncoder implements EncoderInterface, Dec
$data[] = $tmp;
$data[] = $value;
}
- } elseif (key_exists($key, $data)) {
+ } elseif (array_key_exists($key, $data)) {
if ((false === is_array($data[$key])) || (false === isset($data[$key][0]))) {
$data[$key] = array($data[$key]);