Source
288
288
* @param int $i['expandproblem'] Map "Display problems" option. Possible values:
289
289
* SYSMAP_SINGLE_PROBLEM, SYSMAP_PROBLEMS_NUMBER,
290
290
* SYSMAP_PROBLEMS_NUMBER_CRITICAL.
291
291
* @param string $i['problem_title'] (optional) The name of the most critical problem.
292
292
* @param int $host_count (optional) Number of unique hosts that the current selement is related to.
293
293
* @param int|null $show_unack (optional) Map "Problem display" option. Possible values:
294
294
* EXTACK_OPTION_ALL, EXTACK_OPTION_UNACK, EXTACK_OPTION_BOTH.
295
295
*
296
296
* @return array
297
297
*/
298
-
function getSelementInfo(array $i, int $host_count = 0, int $show_unack = null): array {
298
+
function getSelementInfo(array $i, int $host_count = 0, ?int $show_unack = null): array {
299
299
if ($i['elementtype'] == SYSMAP_ELEMENT_TYPE_IMAGE) {
300
300
return [
301
301
'iconid' => $i['iconid_off'],
302
302
'icon_type' => SYSMAP_ELEMENT_ICON_OFF,
303
303
'name' => _('Image'),
304
304
'latelyChanged' => false
305
305
];
306
306
}
307
307
308
308
$info = [