\
assert($attribute instanceof \DOMAttr
);
$name = self::
kebabCaseToCamelCase($attribute->name
);
$values[$name] = XmlUtils::
phpize($attribute->value
);
} foreach ($element->childNodes
as $child) { if (!
$child instanceof \DOMElement
) { continue;
} $values = self::
parseChild($child,
$values);
} return $values;
} /**
* @param array<string, mixed> $values
*
* @return array<string, mixed>
*/
private static function parseChild(\DOMElement
$child, array
$values): array
{