Solved infinite recursion bug

This commit is contained in:
Kevin Frantz
2018-11-18 11:39:06 +01:00
parent 0d0fa68094
commit 9137c55b17
2 changed files with 4 additions and 4 deletions

View File

@@ -105,7 +105,7 @@ final class TreeSourceService extends AbstractSourceService implements TreeSourc
{
$leaves = new ArrayCollection($this->getLeaves()->toArray());
foreach ($this->getAllBranches() as $branch) {
foreach ((new self($branch))->getAllLeaves() as $leave) {
foreach ((new self($branch))->getLeaves() as $leave) {
if (! $leaves->contains($leave)) {
$leaves->add($leave);
}