Skip to content

Commit 2ef64b2

Browse files
committed
Lint fixes
1 parent 3f3ca07 commit 2ef64b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LibreNMS/Cache/Port.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Port
2020
/** @var array<int, array<int, string>> */
2121
private array $ifNameMaps = [];
2222

23-
/** @var array<int, array<int, string>> */
23+
/** @var array<int, array<string, array<string, string>>> */
2424
private array $ipMaps = [];
2525

2626
/**
@@ -126,7 +126,7 @@ public function getIdFromIp(string|IP $ip, ?string $context_name = null, \App\Mo
126126
}
127127

128128
if (isset($this->ipMaps[$device_id][$context_name][$ip_string])) {
129-
return $this->ipMaps[$device_id][$context_name][$ip_string];
129+
return (int) $this->ipMaps[$device_id][$context_name][$ip_string];
130130
}
131131

132132
return null;

0 commit comments

Comments
 (0)