Issues (2963)

includes/polling/os/ict-psu.inc.php (1 issue)

1
<?php
2
3
//SNMPv2-SMI::enterprises.39145.11.1.0 = STRING: "ICT600-48"
4
//SNMPv2-SMI::enterprises.39145.11.4.0 = STRING: "1.08"
5
6
$hardware = trim(snmp_get($device, '1.3.6.1.4.1.39145.11.1.0', '-OQv', '', ''), '" ');
0 ignored issues
show
It seems like snmp_get($device, '1.3.6...1.1.0', '-OQv', '', '') can also be of type false; however, parameter $string of trim() does only seem to accept string, maybe add an additional type check? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

6
$hardware = trim(/** @scrutinizer ignore-type */ snmp_get($device, '1.3.6.1.4.1.39145.11.1.0', '-OQv', '', ''), '" ');
Loading history...
7
$version = 'v' . trim(snmp_get($device, '1.3.6.1.4.1.39145.11.4.0', '-OQv', '', ''), '" ');
8