Skip to content

Commit

Permalink
property empty might not always exist (#117)
Browse files Browse the repository at this point in the history
In Case of the child being a Concatenator there might be no empty property
  • Loading branch information
AlternateIf committed Apr 5, 2024
1 parent 64c30be commit 4b96bae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ConfigElement/Operator/Group.php
Expand Up @@ -24,7 +24,7 @@ public function getLabeledValue($object)
$childs = $this->getChilds();
foreach ($childs as $c) {
$value = $c->getLabeledValue($object);
if (!empty($value) && !$value->empty && (!method_exists($value, 'isEmpty') || !$value->isEmpty())) {
if (!empty($value) && (!property_exists($value, 'empty') || !$value->empty) && (!method_exists($value, 'isEmpty') || !$value->isEmpty())) {
$valueArray[] = $value;
}
}
Expand Down

0 comments on commit 4b96bae

Please sign in to comment.