|  | 
| 23 | 23 | class DOMCaster | 
| 24 | 24 | { | 
| 25 | 25 |     private const ERROR_CODES = [ | 
| 26 |  | -        \DOM_PHP_ERR => 'DOM_PHP_ERR', | 
|  | 26 | +        0 => 'DOM_PHP_ERR', | 
| 27 | 27 |         \DOM_INDEX_SIZE_ERR => 'DOM_INDEX_SIZE_ERR', | 
| 28 | 28 |         \DOMSTRING_SIZE_ERR => 'DOMSTRING_SIZE_ERR', | 
| 29 | 29 |         \DOM_HIERARCHY_REQUEST_ERR => 'DOM_HIERARCHY_REQUEST_ERR', | 
| @@ -138,16 +138,12 @@ public static function castDocument(\DOMDocument $dom, array $a, Stub $stub, boo | 
| 138 | 138 |             'doctype' => $dom->doctype, | 
| 139 | 139 |             'implementation' => $dom->implementation, | 
| 140 | 140 |             'documentElement' => new CutStub($dom->documentElement), | 
| 141 |  | -            'actualEncoding' => $dom->actualEncoding, | 
| 142 | 141 |             'encoding' => $dom->encoding, | 
| 143 | 142 |             'xmlEncoding' => $dom->xmlEncoding, | 
| 144 |  | -            'standalone' => $dom->standalone, | 
| 145 | 143 |             'xmlStandalone' => $dom->xmlStandalone, | 
| 146 |  | -            'version' => $dom->version, | 
| 147 | 144 |             'xmlVersion' => $dom->xmlVersion, | 
| 148 | 145 |             'strictErrorChecking' => $dom->strictErrorChecking, | 
| 149 | 146 |             'documentURI' => $dom->documentURI ? new LinkStub($dom->documentURI) : $dom->documentURI, | 
| 150 |  | -            'config' => $dom->config, | 
| 151 | 147 |             'formatOutput' => $dom->formatOutput, | 
| 152 | 148 |             'validateOnParse' => $dom->validateOnParse, | 
| 153 | 149 |             'resolveExternals' => $dom->resolveExternals, | 
| @@ -275,9 +271,6 @@ public static function castEntity(\DOMEntity $dom, array $a, Stub $stub, bool $i | 
| 275 | 271 |             'publicId' => $dom->publicId, | 
| 276 | 272 |             'systemId' => $dom->systemId, | 
| 277 | 273 |             'notationName' => $dom->notationName, | 
| 278 |  | -            'actualEncoding' => $dom->actualEncoding, | 
| 279 |  | -            'encoding' => $dom->encoding, | 
| 280 |  | -            'version' => $dom->version, | 
| 281 | 274 |         ]; | 
| 282 | 275 | 
 | 
| 283 | 276 |         return $a; | 
|  | 
0 commit comments