Issues (2963)

includes/polling/os/netmanplus.inc.php (1 issue)

1
<?php
2
3
$version = trim(snmp_get($device, '1.3.6.1.2.1.33.1.1.3.0', '-OQv', 'UPS-MIB'), '"');
0 ignored issues
show
It seems like snmp_get($device, '1.3.6....0', '-OQv', 'UPS-MIB') 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

3
$version = trim(/** @scrutinizer ignore-type */ snmp_get($device, '1.3.6.1.2.1.33.1.1.3.0', '-OQv', 'UPS-MIB'), '"');
Loading history...
4