Skip to content

Commit 128b6d2

Browse files
[VarDumper] Fix managing collapse state in CliDumper
1 parent 6b34c00 commit 128b6d2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Symfony/Component/VarDumper/Dumper/CliDumper.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ public function setDisplayOptions(array $displayOptions)
128128
public function dumpScalar(Cursor $cursor, string $type, $value)
129129
{
130130
$this->dumpKey($cursor);
131+
$this->collapseNextHash = $this->expandNextHash = false;
131132

132133
$style = 'const';
133134
$attr = $cursor->attr;
@@ -191,6 +192,7 @@ public function dumpScalar(Cursor $cursor, string $type, $value)
191192
public function dumpString(Cursor $cursor, string $str, bool $bin, int $cut)
192193
{
193194
$this->dumpKey($cursor);
195+
$this->collapseNextHash = $this->expandNextHash = false;
194196
$attr = $cursor->attr;
195197

196198
if ($bin) {
@@ -286,6 +288,7 @@ public function enterHash(Cursor $cursor, int $type, $class, bool $hasChild)
286288
}
287289

288290
$this->dumpKey($cursor);
291+
$this->expandNextHash = false
289292
$attr = $cursor->attr;
290293

291294
if ($this->collapseNextHash) {

src/Symfony/Component/VarDumper/Tests/Caster/MysqliCasterTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public function testNotConnected()
3030

3131
$xCast = <<<EODUMP
3232
mysqli_driver {%A
33-
+reconnect: false
3433
+report_mode: 3
3534
}
3635
EODUMP;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy