Skip to content

Commit c85a39c

Browse files
committed
Convert empty string to 0 for property length in node:list
1 parent 81baa23 commit c85a39c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PHPCR/Shell/Console/Command/Phpcr/NodeListCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ private function renderProperties($currentNode, $table, $spacers, $filter = null
231231
sprintf(
232232
'<property-type>%s (%s)</property-type>',
233233
$this->formatter->getPropertyTypeName($property->getType()),
234-
implode(',', (array) $property->getLength())
234+
implode(',', (array) $property->getLength()) ? : '0'
235235
),
236236
$valueCell,
237237
));

0 commit comments

Comments
 (0)