Skip to content

Commit e4de722

Browse files
[ErrorHandler][VarDumper] Remove PHP 8.4 deprecations
1 parent af8868a commit e4de722

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

Caster/DOMCaster.php

+1-8
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
class DOMCaster
2424
{
2525
private const ERROR_CODES = [
26-
\DOM_PHP_ERR => 'DOM_PHP_ERR',
26+
0 => 'DOM_PHP_ERR',
2727
\DOM_INDEX_SIZE_ERR => 'DOM_INDEX_SIZE_ERR',
2828
\DOMSTRING_SIZE_ERR => 'DOMSTRING_SIZE_ERR',
2929
\DOM_HIERARCHY_REQUEST_ERR => 'DOM_HIERARCHY_REQUEST_ERR',
@@ -138,16 +138,12 @@ public static function castDocument(\DOMDocument $dom, array $a, Stub $stub, boo
138138
'doctype' => $dom->doctype,
139139
'implementation' => $dom->implementation,
140140
'documentElement' => new CutStub($dom->documentElement),
141-
'actualEncoding' => $dom->actualEncoding,
142141
'encoding' => $dom->encoding,
143142
'xmlEncoding' => $dom->xmlEncoding,
144-
'standalone' => $dom->standalone,
145143
'xmlStandalone' => $dom->xmlStandalone,
146-
'version' => $dom->version,
147144
'xmlVersion' => $dom->xmlVersion,
148145
'strictErrorChecking' => $dom->strictErrorChecking,
149146
'documentURI' => $dom->documentURI ? new LinkStub($dom->documentURI) : $dom->documentURI,
150-
'config' => $dom->config,
151147
'formatOutput' => $dom->formatOutput,
152148
'validateOnParse' => $dom->validateOnParse,
153149
'resolveExternals' => $dom->resolveExternals,
@@ -275,9 +271,6 @@ public static function castEntity(\DOMEntity $dom, array $a, Stub $stub, bool $i
275271
'publicId' => $dom->publicId,
276272
'systemId' => $dom->systemId,
277273
'notationName' => $dom->notationName,
278-
'actualEncoding' => $dom->actualEncoding,
279-
'encoding' => $dom->encoding,
280-
'version' => $dom->version,
281274
];
282275

283276
return $a;

Caster/ExceptionCaster.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ExceptionCaster
4141
\E_USER_ERROR => 'E_USER_ERROR',
4242
\E_USER_WARNING => 'E_USER_WARNING',
4343
\E_USER_NOTICE => 'E_USER_NOTICE',
44-
\E_STRICT => 'E_STRICT',
44+
2048 => 'E_STRICT',
4545
];
4646

4747
private static $framesCache = [];

0 commit comments

Comments
 (0)