Skip to content

Commit 3b5bed5

Browse files
Merge branch '6.4' into 7.0
* 6.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 [Profiler] Add word wrap in tables in dialog to see all the text [Core] Fix & Enhance security arabic translation.
2 parents a9d8914 + a71cc33 commit 3b5bed5

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',
@@ -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,
@@ -238,9 +234,6 @@ public static function castEntity(\DOMEntity $dom, array $a, Stub $stub, bool $i
238234
'publicId' => $dom->publicId,
239235
'systemId' => $dom->systemId,
240236
'notationName' => $dom->notationName,
241-
'actualEncoding' => $dom->actualEncoding,
242-
'encoding' => $dom->encoding,
243-
'version' => $dom->version,
244237
];
245238

246239
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
@@ -587,7 +587,7 @@ private function hasColorSupport(mixed $stream): bool
587587
}
588588

589589
// Follow https://no-color.org/
590-
if (isset($_SERVER['NO_COLOR']) || false !== getenv('NO_COLOR')) {
590+
if ('' !== ($_SERVER['NO_COLOR'] ?? getenv('NO_COLOR') ?: '')) {
591591
return false;
592592
}
593593

0 commit comments

Comments
 (0)