Skip to content

Commit

Permalink
feat: Test walk and walk recursive
Browse files Browse the repository at this point in the history
  • Loading branch information
omitobi committed Apr 29, 2024
1 parent 2202bd7 commit f216102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Arrayed.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public function __toString(): string

public function toArray(): array
{
return $this->walk(
return $this->walkRecursive(
function ($value) {
return $value instanceof ArrayedInterface ? $value->getWorkableItem() : $value;
}
Expand Down

0 comments on commit f216102

Please sign in to comment.