Issues (2963)

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

1
<?php
2
/*
3
 * LibreNMS
4
 *
5
 * Copyright (c) 2017 Søren Friis Rosiak <[email protected]>
6
 * This program is free software: you can redistribute it and/or modify it
7
 * under the terms of the GNU General Public License as published by the
8
 * Free Software Foundation, either version 3 of the License, or (at your
9
 * option) any later version.  Please see LICENSE.txt at the top level of
10
 * the source code distribution for details.
11
 */
12
13
$version = trim(snmp_get($device, 'patchVersion.0', '-Ovq', 'B100-MIB'), '"');
0 ignored issues
show
It seems like snmp_get($device, 'patch...0', '-Ovq', 'B100-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

13
$version = trim(/** @scrutinizer ignore-type */ snmp_get($device, 'patchVersion.0', '-Ovq', 'B100-MIB'), '"');
Loading history...
14