We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a19bdb commit 1ea1a96Copy full SHA for 1ea1a96
1 file changed
src/Command/AnalyseApplication.php
@@ -197,7 +197,7 @@ private function getNumberOfCpuCores(): int
197
$cores = 2;
198
if (is_file('/proc/cpuinfo')) {
199
// Linux (and potentially Windows with linux sub systems)
200
- $cpuinfo = file_get_contents('/proc/cpuinfo');
+ $cpuinfo = @file_get_contents('/proc/cpuinfo');
201
if ($cpuinfo !== false) {
202
preg_match_all('/^processor/m', $cpuinfo, $matches);
203
return count($matches[0]);
0 commit comments