Skip to content

Commit

Permalink
Optimize WithDumpable
Browse files Browse the repository at this point in the history
  • Loading branch information
guanguans committed May 22, 2023
1 parent db0cc3f commit f87bb62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Concerns/WithDumpable.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function dd(...$args): void
*/
public function dump(...$args): self
{
$args = array_merge($args, [$this, (string) $this, $this->version(), $this->help()]);
$args[] = $this;
$varDumperExists = class_exists(VarDumper::class);

foreach ($args as $arg) {
Expand Down

0 comments on commit f87bb62

Please sign in to comment.