X7ROOT File Manager
Current Path:
/home/prisjneg/public_html/vendor/symfony/var-dumper/Caster
home
/
prisjneg
/
public_html
/
vendor
/
symfony
/
var-dumper
/
Caster
/
📁
..
📄
AmqpCaster.php
(6.72 KB)
📄
ArgsStub.php
(2.24 KB)
📄
Caster.php
(6.73 KB)
📄
ClassStub.php
(3.76 KB)
📄
ConstStub.php
(740 B)
📄
CutArrayStub.php
(696 B)
📄
CutStub.php
(1.89 KB)
📄
DOMCaster.php
(9.03 KB)
📄
DateCaster.php
(4.94 KB)
📄
DoctrineCaster.php
(1.74 KB)
📄
DsCaster.php
(1.55 KB)
📄
DsPairStub.php
(625 B)
📄
EnumStub.php
(637 B)
📄
ExceptionCaster.php
(16.38 KB)
📄
FFICaster.php
(5.53 KB)
📄
FiberCaster.php
(1.07 KB)
📄
FrameStub.php
(740 B)
📄
GmpCaster.php
(749 B)
📄
ImagineCaster.php
(949 B)
📄
ImgStub.php
(637 B)
📄
IntlCaster.php
(8.9 KB)
📄
LinkStub.php
(3.29 KB)
📄
MemcachedCaster.php
(2.27 KB)
📄
MysqliCaster.php
(691 B)
📄
PdoCaster.php
(3.54 KB)
📄
PgSqlCaster.php
(5.46 KB)
📄
ProxyManagerCaster.php
(758 B)
📄
RdKafkaCaster.php
(4.97 KB)
📄
RedisCaster.php
(5.43 KB)
📄
ReflectionCaster.php
(15.35 KB)
📄
ResourceCaster.php
(3.07 KB)
📄
ScalarStub.php
(554 B)
📄
SplCaster.php
(8.13 KB)
📄
StubCaster.php
(2.47 KB)
📄
SymfonyCaster.php
(3.69 KB)
📄
TraceStub.php
(964 B)
📄
UninitializedStub.php
(615 B)
📄
UuidCaster.php
(668 B)
📄
XmlReaderCaster.php
(3.33 KB)
📄
XmlResourceCaster.php
(2.52 KB)
Editing: XmlResourceCaster.php
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\VarDumper\Caster; use Symfony\Component\VarDumper\Cloner\Stub; /** * Casts XML resources to array representation. * * @author Nicolas Grekas <p@tchwork.com> * * @final */ class XmlResourceCaster { private const XML_ERRORS = [ \XML_ERROR_NONE => 'XML_ERROR_NONE', \XML_ERROR_NO_MEMORY => 'XML_ERROR_NO_MEMORY', \XML_ERROR_SYNTAX => 'XML_ERROR_SYNTAX', \XML_ERROR_NO_ELEMENTS => 'XML_ERROR_NO_ELEMENTS', \XML_ERROR_INVALID_TOKEN => 'XML_ERROR_INVALID_TOKEN', \XML_ERROR_UNCLOSED_TOKEN => 'XML_ERROR_UNCLOSED_TOKEN', \XML_ERROR_PARTIAL_CHAR => 'XML_ERROR_PARTIAL_CHAR', \XML_ERROR_TAG_MISMATCH => 'XML_ERROR_TAG_MISMATCH', \XML_ERROR_DUPLICATE_ATTRIBUTE => 'XML_ERROR_DUPLICATE_ATTRIBUTE', \XML_ERROR_JUNK_AFTER_DOC_ELEMENT => 'XML_ERROR_JUNK_AFTER_DOC_ELEMENT', \XML_ERROR_PARAM_ENTITY_REF => 'XML_ERROR_PARAM_ENTITY_REF', \XML_ERROR_UNDEFINED_ENTITY => 'XML_ERROR_UNDEFINED_ENTITY', \XML_ERROR_RECURSIVE_ENTITY_REF => 'XML_ERROR_RECURSIVE_ENTITY_REF', \XML_ERROR_ASYNC_ENTITY => 'XML_ERROR_ASYNC_ENTITY', \XML_ERROR_BAD_CHAR_REF => 'XML_ERROR_BAD_CHAR_REF', \XML_ERROR_BINARY_ENTITY_REF => 'XML_ERROR_BINARY_ENTITY_REF', \XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF => 'XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF', \XML_ERROR_MISPLACED_XML_PI => 'XML_ERROR_MISPLACED_XML_PI', \XML_ERROR_UNKNOWN_ENCODING => 'XML_ERROR_UNKNOWN_ENCODING', \XML_ERROR_INCORRECT_ENCODING => 'XML_ERROR_INCORRECT_ENCODING', \XML_ERROR_UNCLOSED_CDATA_SECTION => 'XML_ERROR_UNCLOSED_CDATA_SECTION', \XML_ERROR_EXTERNAL_ENTITY_HANDLING => 'XML_ERROR_EXTERNAL_ENTITY_HANDLING', ]; /** * @return array */ public static function castXml($h, array $a, Stub $stub, bool $isNested) { $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; } }
Upload File
Create Folder