$operations[$operation] = $operations[$row['class']] ?? [];
$operations[$operation][$entity] = $operations[$operation][$entity] ?? [];
- $operations[$operation][$entity] = array_unique(array_merge($operations[$operation][$entity], $eventNames));
+ $operations[$operation][$entity] = array_unique(array_merge($operations[$operation][$entity], $eventNames ?? []));
}
$result->closeCursor();
$operation['checks'][] = $check;
}
- $operation['events'] = json_decode($operation['events'], true);
+ $operation['events'] = json_decode($operation['events'], true) ?? [];
return $operation;