Explorar o código

Replace deprecated key_exists alias

From the PHP manual of array_key_exists:
    For backward compatibility, the following deprecated alias
    may be used: key_exists().
Laurent Bachelier %!s(int64=13) %!d(string=hai) anos
pai
achega
72e82eb595
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Symfony/Component/Serializer/Encoder/XmlEncoder.php

+ 1 - 1
src/Symfony/Component/Serializer/Encoder/XmlEncoder.php

@@ -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]);
                 }