8000 Merge branch '5.4' into 6.4 · symfony/var-dumper@a71cc33 · GitHub
[go: up one dir, main page]

Skip to content

Commit a71cc33

Browse files
Merge branch '5.4' into 6.4
* 5.4: [Console][PhpUnitBridge][VarDumper] Fix `NO_COLOR` empty value handling [Translation] Fix CSV escape char in `CsvFileLoader` on PHP >= 7.4 [DoctrineBridge] fix messenger bus dispatch inside an active transaction [HttpFoundation] Add tests for uncovered sections treat uninitialized properties referenced by property paths as null properly set up constraint options [ErrorHandler][VarDumper] Remove PHP 8.4 deprecations [Core] Fix & Enhance security arabic translation.
2 parents c31566e + 0c17c56 commit a71cc33

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

Caster/DOMCaster.php

Lines changed: 1 addition & 8 deletions
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',
@@ -156,16 +156,12 @@ public static function castDocument(\DOMDocument $dom, array $a, Stub $stub, boo
156156
'doctype' => $dom->doctype,
157157
'implementation' => $dom->implementation,
158158
'documentElement' => new CutStub($dom->documentElement),
159-
'actualEncoding' => $dom->actualEncoding,
160159
'encoding' => $dom->encoding,
161160
'xmlEncoding' => $dom->xmlEncoding,
162-
'standalone' => $dom->standalone,
163161
'xmlStandalone' => $dom->xmlStandalone,
164-
'version' => $dom->version,
165162
'xmlVersion' => $dom->xmlVersion,
166163
'strictErrorChecking' => $dom->strictErrorChecking,
167164
'documentURI' => $dom->documentURI ? new LinkStub($dom->documentURI) : $dom->documentURI,
168-
'config' => $dom->config,
169165
'formatOutput' => $dom->formatOutput,
170166
'validateOnParse' => $dom->validateOnParse,
171167
'resolveExternals' => $dom->resolveExternals,
@@ -277,9 +273,6 @@ public static function castEntity(\DOMEntity $dom, array $a, Stub $stub, bool $i
277273
'publicId' => $dom->publicId,
278274
'systemId' => $dom->systemId,
279275
'notationName' => $dom->notationName,
280-
'actualEncoding' => $dom->actualEncoding,
281-
'encoding' => $dom->encoding,
282-
'version' => $dom->version,
283276
];
284277

285278
return $a;

Caster/ExceptionCaster.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ExceptionCaster
4242
\E_USER_ERROR => 'E_USER_ERROR',
4343
\E_USER_WARNING => 'E_USER_WARNING',
4444
\E_USER_NOTICE => 'E_USER_NOTICE',
45-
\E_STRICT => 'E_STRICT',
45+
2048 => 'E_STRICT',
4646
];
4747

4848
private static array $framesCache = [];

Dumper/CliDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ private function hasColorSupport(mixed $stream): bool
621621
}
622622

623623
// Follow https://no-color.org/
624-
if (isset($_SERVER['NO_COLOR']) || false !== getenv('NO_COLOR')) {
624+
if ('' !== ($_SERVER['NO_COLOR'] ?? getenv('NO_COLOR') ?: '')) {
625625
return false;
626626
}
627627

0 commit comments

Comments
 (0)
0