Issues (6)

examples/vector.php (2 issues)

1
<?php
2
3
require __DIR__ . '/../vendor/autoload.php';
4
5
use Np\vector;
6
vector::time();
0 ignored issues
show
Bug Best Practice introduced by
The method Np\core\nd::time() is not static, but was called statically. ( Ignorable by Annotation )

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

6
vector::/** @scrutinizer ignore-call */ 
7
        time();
Loading history...
7
vector::getMemory();
0 ignored issues
show
Bug Best Practice introduced by
The method Np\core\nd::getMemory() is not static, but was called statically. ( Ignorable by Annotation )

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

7
vector::/** @scrutinizer ignore-call */ 
8
        getMemory();
Loading history...
8
$v = vector::ar(range(random_int(1,2), random_int(99999,9999999))); 
9
10
echo $v->sum() . PHP_EOL;
11
vector::getMemory();
12
vector::time();
13