We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b05a7a0 commit c2aef85Copy full SHA for c2aef85
src/XML.php
@@ -56,7 +56,8 @@ private function xmlToArray($xml, $options = [])
56
foreach ($xml->children($namespace) as $childXml) {
57
//recurse into child nodes
58
$childArray = $this->xmlToArray($childXml, $options);
59
- list($childTagName, $childProperties) = each($childArray);
+ $childTagName = key($childArray);
60
+ $childProperties = current($childArray);
61
$childTagName = strtolower($childTagName);
62
//replace characters in tag name
63
if ($options['keySearch']) {
0 commit comments