function XmlResourceCaster::castXml
File
-
vendor/
symfony/ var-dumper/ Caster/ XmlResourceCaster.php, line 50
Class
- XmlResourceCaster
- Casts XML resources to array representation.
Namespace
Symfony\Component\VarDumper\CasterCode
public static function castXml($h, array $a, Stub $stub, bool $isNested) : array {
$a['current_byte_index'] = xml_get_current_byte_index($h);
$a['current_column_number'] = xml_get_current_column_number($h);
$a['current_line_number'] = xml_get_current_line_number($h);
$a['error_code'] = xml_get_error_code($h);
if (isset(self::XML_ERRORS[$a['error_code']])) {
$a['error_code'] = new ConstStub(self::XML_ERRORS[$a['error_code']], $a['error_code']);
}
return $a;
}