The expression return $this->iterateParts($partsContainer) also could return the type true which is incompatible with the documented return type Illuminate\Support\Collection.
Loading history...
20
}
21
22
23
/**
24
* Recursive Method. Iterates through a collection,
25
* finding all 'parts'.
26
*
27
* @param collection $partsContainer
28
* @param bool $returnOnFirstFound
29
*
30
* @return Collection|boolean
31
*/
32
33
private function iterateParts($partsContainer, $returnOnFirstFound = false)