8000 Fix ServerDumper issue if no wrapped dumper set · symfony/symfony@7ae32d8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7ae32d8

Browse files
committed
Fix ServerDumper issue if no wrapped dumper set
1 parent 5d43f32 commit 7ae32d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function dump(Data $data, $output = null)
6363
}
6464
} finally {
6565
restore_error_handler();
66-
if ($failed) {
66+
if ($failed && $this->wrappedDumper) {
6767
$this->wrappedDumper->dump($data);
6868
}
6969
}
@@ -85,7 +85,7 @@ public function dump(Data $data, $output = null)
8585
}
8686
} finally {
8787
restore_error_handler();
88-
if (!$this->swallows || $failed) {
88+
if ($this->wrappedDumper && (!$this->swallows || $failed)) {
8989
$this->wrappedDumper->dump($data);
9090
}
9191
}

0 commit comments

Comments
 (0)
0