Skip to content

Commit 1ea1a96

Browse files
committed
Do not warn about unreadable /proc/cpuinfo
1 parent 0a19bdb commit 1ea1a96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Command/AnalyseApplication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ private function getNumberOfCpuCores(): int
197197
$cores = 2;
198198
if (is_file('/proc/cpuinfo')) {
199199
// Linux (and potentially Windows with linux sub systems)
200-
$cpuinfo = file_get_contents('/proc/cpuinfo');
200+
$cpuinfo = @file_get_contents('/proc/cpuinfo');
201201
if ($cpuinfo !== false) {
202202
preg_match_all('/^processor/m', $cpuinfo, $matches);
203203
return count($matches[0]);

0 commit comments

Comments
 (0)