The expression return self::instance could return the type null which is incompatible with the type-hinted return Startwind\Inventorio\Exec\System. Consider adding an additional type-check to rule them out.
Loading history...
16
}
17
18
public function getDiskTotalSpace($directory): float
19
{
20
return disk_total_space($directory);
21
}
22
23
public function getDiskFreeSpace($directory): float
24
{
25
return disk_free_space($directory);
26
}
27
28
public function getLoadAverage(): array
29
{
30
return sys_getloadavg();
31
}
32
33
public function getEnvironmentVariable($name): string