Skip to content

Commit a2b4a93

Browse files
laurentbfabpot
authored andcommitted
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().
1 parent e7cf4cf commit a2b4a93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Encoder/XmlEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ private function parseXml($node)
198198
$data[] = $tmp;
199199
$data[] = $value;
200200
}
201-
} elseif (key_exists($key, $data)) {
201+
} elseif (array_key_exists($key, $data)) {
202202
if ((false === is_array($data[$key])) || (false === isset($data[$key][0]))) {
203203
$data[$key] = array($data[$key]);
204204
}

0 commit comments

Comments
 (0)