Skip to content

Commit

Permalink
Component/select: Before uppercasing $child->group, make sure it isn'…
Browse files Browse the repository at this point in the history
…t null

Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
  • Loading branch information
algernon committed May 12, 2022
1 parent 06feff3 commit 7c50120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Component.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ function ($child) use ($group) {
$result = [];
foreach ($this->children as $childGroup) {
foreach ($childGroup as $child) {
if ($child instanceof Property && strtoupper($child->group) === $group) {
if ($child instanceof Property && $child->group && strtoupper($child->group) === $group) {
$result[] = $child;
}
}
Expand Down

0 comments on commit 7c50120

Please sign in to comment.