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...
21
}
22
23
public function __construct()
24
{
25
$process = new Process(['timeout', '--version']);
26
if ($process->isSuccessful()) {
27
$this->timeout = true;
28
} else {
29
$this->timeout = false;
30
}
31
}
32
33
public function run($command, $killAfterSeconds = 5): Process