Skip to content

Commit 8bad473

Browse files
authored
Merge pull request #18 from lucasmichot/feature/dumper-null-connection
The connection can be null.
2 parents d24b641 + 352f1a5 commit 8bad473

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/Dumper.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,20 @@
99

1010
class Dumper
1111
{
12-
/** @var Connection */
12+
/**
13+
* The connection.
14+
*
15+
* @var \Symfony\Component\VarDumper\Server\Connection|null
16+
*/
1317
private $connection;
1418

15-
public function __construct(Connection $connection)
19+
/**
20+
* Dumper constructor.
21+
*
22+
* @param \Symfony\Component\VarDumper\Server\Connection|null $connection
23+
* @return void
24+
*/
25+
public function __construct(Connection $connection = null)
1626
{
1727
$this->connection = $connection;
1828
}

0 commit comments

Comments
 (0)