Skip to content

Commit 6a19c4c

Browse files
[8.x] Separate dump() and dd() usage for consistency (#1096)
* Use `dump()` instead of `dd()` for consistency. Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * Apply fixes from StyleCI --------- Signed-off-by: Mior Muhammad Zaki <[email protected]> Co-authored-by: StyleCI Bot <[email protected]>
1 parent 1bdefcf commit 6a19c4c

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/Browser.php

+17-1
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,23 @@ public function tap($callback)
742742
*/
743743
public function dump()
744744
{
745-
dd($this->driver->getPageSource());
745+
dump($this->driver->getPageSource());
746+
747+
return $this;
748+
}
749+
750+
/**
751+
* Dump and die the content from the last response.
752+
*
753+
* @return void
754+
*/
755+
public function dd()
756+
{
757+
dump($this->driver->getPageSource());
758+
759+
$this->quit();
760+
761+
exit;
746762
}
747763

748764
/**

0 commit comments

Comments
 (0)