|
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', |
@@ -143,16 +143,12 @@ public static function castDocument(\DOMDocument $dom, array $a, Stub $stub, boo |
143 | 143 | 'doctype' => $dom->doctype, |
144 | 144 | 'implementation' => $dom->implementation, |
145 | 145 | 'documentElement' => new CutStub($dom->documentElement), |
146 | | - 'actualEncoding' => $dom->actualEncoding, |
147 | 146 | 'encoding' => $dom->encoding, |
148 | 147 | 'xmlEncoding' => $dom->xmlEncoding, |
149 | | - 'standalone' => $dom->standalone, |
150 | 148 | 'xmlStandalone' => $dom->xmlStandalone, |
151 | | - 'version' => $dom->version, |
152 | 149 | 'xmlVersion' => $dom->xmlVersion, |
153 | 150 | 'strictErrorChecking' => $dom->strictErrorChecking, |
154 | 151 | 'documentURI' => $dom->documentURI ? new LinkStub($dom->documentURI) : $dom->documentURI, |
155 | | - 'config' => $dom->config, |
156 | 152 | 'formatOutput' => $dom->formatOutput, |
157 | 153 | 'validateOnParse' => $dom->validateOnParse, |
158 | 154 | 'resolveExternals' => $dom->resolveExternals, |
@@ -294,9 +290,6 @@ public static function castEntity(\DOMEntity|\Dom\Entity $dom, array $a, Stub $s |
294 | 290 | 'publicId' => $dom->publicId, |
295 | 291 | 'systemId' => $dom->systemId, |
296 | 292 | 'notationName' => $dom->notationName, |
297 | | - 'actualEncoding' => $dom->actualEncoding, |
298 | | - 'encoding' => $dom->encoding, |
299 | | - 'version' => $dom->version, |
300 | 293 | ]; |
301 | 294 |
|
302 | 295 | return $a; |
|
0 commit comments