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 7c1be94 commit 93b8d15Copy full SHA for 93b8d15
1 file changed
src/SelectTree.php
@@ -552,10 +552,9 @@ 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
- );
+ ->when($this->append, fn (Collection $tree) => $tree->push($this->evaluate($this->append)));
559
}
560
561
public function getResults(): Collection|LazyCollection|array|null
0 commit comments