Skip to content

Commit

Permalink
Removes Dumpable dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Mar 4, 2024
1 parent 6f3ddc3 commit 9d886e6
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/Illuminate/Collections/Traits/EnumeratesValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
*/
trait EnumeratesValues
{
use Conditionable, Dumpable;
use Conditionable;

/**
* Indicates that the object's string representation should be escaped when __toString is invoked.
Expand Down Expand Up @@ -198,6 +198,19 @@ public function some($key, $operator = null, $value = null)
return $this->contains(...func_get_args());
}

/**
* Dump the given arguments and terminate execution.
*
* @param mixed ...$args
* @return never
*/
public function dd(...$args)
{
$this->dump(...$args);

dd();
}

/**
* Dump the items.
*
Expand Down

0 comments on commit 9d886e6

Please sign in to comment.