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.
1 parent d24b641 commit e4ebd06Copy full SHA for e4ebd06
src/Dumper.php
@@ -26,11 +26,10 @@ public function __construct(Connection $connection)
26
public function dump($value)
27
{
28
if (class_exists(CliDumper::class)) {
29
- $dumper = in_array(PHP_SAPI, ['cli', 'phpdbg']) ? new CliDumper : new HtmlDumper;
30
-
31
$data = (new VarCloner)->cloneVar($value);
32
33
- 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;
34
$dumper->dump($data);
35
}
36
} else {
0 commit comments