Skip to content

Commit

Permalink
feat(strings): add new methods dd and dump
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Jun 2, 2022
1 parent 6849516 commit 875cd03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Strings.php
Original file line number Diff line number Diff line change
Expand Up @@ -2750,7 +2750,7 @@ static function (&$value) use ($encoding): void {
*/
public function dump(?callable $callback = null): self
{
$callback ? $callback($this->strings) : print_r($this->strings);
$callback ? $callback($this->toString()) : print_r($this->toString());

return $this;
}
Expand Down

0 comments on commit 875cd03

Please sign in to comment.