Skip to content

Commit

Permalink
[8.x] Separate dump() and dd() usage for consistency (#1096)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
crynobone and StyleCIBot authored Mar 25, 2024
1 parent 1bdefcf commit 6a19c4c
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/Browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,23 @@ public function tap($callback)
*/
public function dump()
{
dd($this->driver->getPageSource());
dump($this->driver->getPageSource());

return $this;
}

/**
* Dump and die the content from the last response.
*
* @return void
*/
public function dd()
{
dump($this->driver->getPageSource());

$this->quit();

exit;
}

/**
Expand Down

0 comments on commit 6a19c4c

Please sign in to comment.