Skip to content

Commit

Permalink
Revert breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Sep 29, 2024
1 parent 809f806 commit b38e7c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Eloquent/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ class Collection extends Base
{
/**
* Generate a nested tree.
*
* @param string $childrenRelation
* @return static
*/
public function toTree(string $childrenRelation = 'children'): static
public function toTree($childrenRelation = 'children')
{
if ($this->isEmpty()) {
return $this;
Expand Down

0 comments on commit b38e7c8

Please sign in to comment.