Issues (55)

examples/Util/getAll.php (2 issues)

Labels
Severity
1
<?php
2
use PEAR2\Net\RouterOS;
3
4
require_once 'PEAR2/Autoload.php';
5
6
$util = new RouterOS\Util(
7
    $client = new RouterOS\Client('192.168.88.1', 'admin', 'password')
8
);
9
$util->setMenu('/ip arp');
10
11
foreach ($util->getAll() as $item) {
12
    echo 'IP: ', $item->getProperty('address'),
0 ignored issues
show
Are you sure $item->getProperty('address') of type null|resource|string can be used in echo? ( Ignorable by Annotation )

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

12
    echo 'IP: ', /** @scrutinizer ignore-type */ $item->getProperty('address'),
Loading history...
13
         ' MAC: ', $item->getProperty('mac-address'),
0 ignored issues
show
Are you sure $item->getProperty('mac-address') of type null|resource|string can be used in echo? ( Ignorable by Annotation )

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

13
         ' MAC: ', /** @scrutinizer ignore-type */ $item->getProperty('mac-address'),
Loading history...
14
         "\n";
15
}
16