mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-11-04 11:17:58 +00:00 
			
		
		
		
	Solved infinite recursion bug
This commit is contained in:
		@@ -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);
 | 
			
		||||
                }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user