mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-31 16:24:54 +02:00
Added declare strict types to all files
This commit is contained in:
parent
bea90a7d94
commit
6a2ff9d153
196 changed files with 685 additions and 360 deletions
|
@ -40,7 +40,7 @@ final class TreeViewNodeIterator extends ArrayIterator implements RecursiveItera
|
|||
/** @var TreeViewNode $element */
|
||||
$element = $this->current();
|
||||
|
||||
return !empty($element->getNodes());
|
||||
return $element->getNodes() !== null && $element->getNodes() !== [];
|
||||
}
|
||||
|
||||
public function getChildren(): TreeViewNodeIterator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue