mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-13 03:44:36 +02:00
Fixed some inspection issues.
This commit is contained in:
parent
eef26f7ae6
commit
639829f5c5
97 changed files with 305 additions and 185 deletions
|
@ -45,6 +45,7 @@ namespace App\Helpers\Trees;
|
|||
use App\Entity\Base\AbstractStructuralDBElement;
|
||||
use ArrayIterator;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use InvalidArgumentException;
|
||||
use RecursiveIterator;
|
||||
|
||||
final class StructuralDBElementIterator extends ArrayIterator implements RecursiveIterator
|
||||
|
@ -73,7 +74,7 @@ final class StructuralDBElementIterator extends ArrayIterator implements Recursi
|
|||
} elseif ($subelements instanceof Collection) {
|
||||
$array = $subelements->toArray();
|
||||
} else {
|
||||
throw new \InvalidArgumentException('Invalid subelements type on $element!');
|
||||
throw new InvalidArgumentException('Invalid subelements type on $element!');
|
||||
}
|
||||
|
||||
return new self($array);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue