Skip to content

Commit

Permalink
Merge pull request #286 from tzurbaev/patch-1
Browse files Browse the repository at this point in the history
Make DumpHandler instance manually in DumpRecorder::register()
  • Loading branch information
freekmurze committed Jul 13, 2020
2 parents 8b45536 + 3d5bd4b commit 7329a04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DumpRecorder/DumpHandler.php
Expand Up @@ -6,7 +6,7 @@

class DumpHandler
{
/** @var \Facade\Flare\DumpRecorder\DumpRecorder */
/** @var \Facade\Ignition\DumpRecorder\DumpRecorder */
protected $dumpRecorder;

public function __construct(DumpRecorder $dumpRecorder)
Expand Down
2 changes: 1 addition & 1 deletion src/DumpRecorder/DumpRecorder.php
Expand Up @@ -39,7 +39,7 @@ public function register(): self
}

$multiDumpHandler->addHandler(function ($var) {
$this->app->make(DumpHandler::class)->dump($var);
(new DumpHandler($this))->dump($var);
});

return $this;
Expand Down

0 comments on commit 7329a04

Please sign in to comment.