Skip to content

Commit 5bf8b97

Browse files
committed
Fixed PHP 8 error
1 parent 08e3bfe commit 5bf8b97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wcmf/application/controller/TreeController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ protected function getViewNode(Node $node, $displayText='') {
145145
}
146146
$oid = $node->getOID();
147147
$isFolder = $oid->containsDummyIds();
148-
$hasChildren = $this->isRootTypeNode($oid) || sizeof($node->getNumChildren()) > 0;
148+
$hasChildren = $this->isRootTypeNode($oid) || $node->getNumChildren() > 0;
149149
return [
150150
'oid' => $node->getOID()->__toString(),
151151
'displayText' => $displayText,

0 commit comments

Comments
 (0)