|
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',
|
@@ -156,16 +156,12 @@ public static function castDocument(\DOMDocument $dom, array $a, Stub $stub, boo
|
156 | 156 | 'doctype' => $dom->doctype,
|
157 | 157 | 'implementation' => $dom->implementation,
|
158 | 158 | 'documentElement' => new CutStub($dom->documentElement),
|
159 |
| - 'actualEncoding' => $dom->actualEncoding, |
160 | 159 | 'encoding' => $dom->encoding,
|
161 | 160 | 'xmlEncoding' => $dom->xmlEncoding,
|
162 |
| - 'standalone' => $dom->standalone, |
163 | 161 | 'xmlStandalone' => $dom->xmlStandalone,
|
164 |
| - 'version' => $dom->version, |
165 | 162 | 'xmlVersion' => $dom->xmlVersion,
|
166 | 163 | 'strictErrorChecking' => $dom->strictErrorChecking,
|
167 | 164 | 'documentURI' => $dom->documentURI ? new LinkStub($dom->documentURI) : $dom->documentURI,
|
168 |
| - 'config' => $dom->config, |
169 | 165 | 'formatOutput' => $dom->formatOutput,
|
170 | 166 | 'validateOnParse' => $dom->validateOnParse,
|
171 | 167 | 'resolveExternals' => $dom->resolveExternals,
|
@@ -277,9 +273,6 @@ public static function castEntity(\DOMEntity $dom, array $a, Stub $stub, bool $i
|
277 | 273 | 'publicId' => $dom->publicId,
|
278 | 274 | 'systemId' => $dom->systemId,
|
279 | 275 | 'notationName' => $dom->notationName,
|
280 |
| - 'actualEncoding' => $dom->actualEncoding, |
281 |
| - 'encoding' => $dom->encoding, |
282 |
| - 'version' => $dom->version, |
283 | 276 | ];
|
284 | 277 |
|
285 | 278 | return $a;
|
|
0 commit comments