Skip to content

Commit 4b96bae

Browse files
authored
property empty might not always exist (#117)
In Case of the child being a Concatenator there might be no empty property
1 parent 64c30be commit 4b96bae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ConfigElement/Operator/Group.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function getLabeledValue($object)
2424
$childs = $this->getChilds();
2525
foreach ($childs as $c) {
2626
$value = $c->getLabeledValue($object);
27-
if (!empty($value) && !$value->empty && (!method_exists($value, 'isEmpty') || !$value->isEmpty())) {
27+
if (!empty($value) && (!property_exists($value, 'empty') || !$value->empty) && (!method_exists($value, 'isEmpty') || !$value->isEmpty())) {
2828
$valueArray[] = $value;
2929
}
3030
}

0 commit comments

Comments
 (0)