The expression return self::instance could return the type null which is incompatible with the type-hinted return Startwind\Inventorio\Exec\Runner. Consider adding an additional type-check to rule them out.
Loading history...
20
}
21
22
public function __construct()
23
{
24
$process = $this->run('timeout --version');
25
if ($process->isSuccessful()) {
26
$this->timeout = true;
27
} else {
28
$this->timeout = false;
29
}
30
}
31
32
public function run($command, $killAfterSeconds = 5): Process