We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93b8d15 commit 14a2820Copy full SHA for 14a2820
1 file changed
src/SelectTree.php
@@ -552,7 +552,7 @@ public function getTreeUsing(Closure|array $value): static
552
553
public function getTree(): Collection
554
{
555
- return (Collection::wrap($this->evaluate($this->getTreeUsing)) ?? $this->buildTree())
+ return Collection::wrap($this->evaluate($this->getTreeUsing) ?? $this->buildTree())
556
->when($this->prepend, fn (Collection $tree) => $tree->prepend($this->evaluate($this->prepend)))
557
->when($this->append, fn (Collection $tree) => $tree->push($this->evaluate($this->append)));
558
}
0 commit comments