Skip to content

Commit 93b8d15

Browse files
committed
parentheses
1 parent 7c1be94 commit 93b8d15

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/SelectTree.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -552,10 +552,9 @@ public function getTreeUsing(Closure|array $value): static
552552

553553
public function getTree(): Collection
554554
{
555-
return Collection::wrap($this->evaluate($this->getTreeUsing)) ?? $this->buildTree()
555+
return (Collection::wrap($this->evaluate($this->getTreeUsing)) ?? $this->buildTree())
556556
->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-
);
557+
->when($this->append, fn (Collection $tree) => $tree->push($this->evaluate($this->append)));
559558
}
560559

561560
public function getResults(): Collection|LazyCollection|array|null

0 commit comments

Comments
 (0)