Issues (2963)

includes/polling/os/avaya-ipo.inc.php (1 issue)

1
<?php
2
3
echo 'Scanning Avaya IP Office...';
4
5
$physDevice = snmp_get($device, 'ENTITY-MIB::entPhysicalDescr.1', '-Oqvn');
6
7
if (strstr($physDevice, 'Avaya IP Office')) {
0 ignored issues
show
It seems like $physDevice can also be of type false; however, parameter $haystack of strstr() 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

7
if (strstr(/** @scrutinizer ignore-type */ $physDevice, 'Avaya IP Office')) {
Loading history...
8
    $hardware = $physDevice;
9
}
10
11
$version = $device['sysDescr'];
12