|
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, |
@@ -238,9 +234,6 @@ public static function castEntity(\DOMEntity $dom, array $a, Stub $stub, bool $i |
238 | 234 | 'publicId' => $dom->publicId, |
239 | 235 | 'systemId' => $dom->systemId, |
240 | 236 | 'notationName' => $dom->notationName, |
241 | | - 'actualEncoding' => $dom->actualEncoding, |
242 | | - 'encoding' => $dom->encoding, |
243 | | - 'version' => $dom->version, |
244 | 237 | ]; |
245 | 238 |
|
246 | 239 | return $a; |
|
0 commit comments