We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8bad473 + e4ebd06 commit 24ceaa8Copy full SHA for 24ceaa8
src/Dumper.php
@@ -36,11 +36,10 @@ public function __construct(Connection $connection = null)
36
public function dump($value)
37
{
38
if (class_exists(CliDumper::class)) {
39
- $dumper = in_array(PHP_SAPI, ['cli', 'phpdbg']) ? new CliDumper : new HtmlDumper;
40
-
41
$data = (new VarCloner)->cloneVar($value);
42
43
- if (!$this->connection || !$this->connection->write($data)) {
+ if ($this->connection === null || $this->connection->write($data) === false) {
+ $dumper = in_array(PHP_SAPI, ['cli', 'phpdbg']) ? new CliDumper : new HtmlDumper;
44
$dumper->dump($data);
45
}
46
} else {
0 commit comments