Skip to content

Commit 2392fd8

Browse files
committed
Mute command not found: nproc
1 parent 898f2c3 commit 2392fd8

File tree

1 file changed

+1
-1
lines changed
  • src/voku/SimplePhpParser/Parsers/Helper

1 file changed

+1
-1
lines changed

src/voku/SimplePhpParser/Parsers/Helper/Utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ public static function getCpuCores(): int
468468
}
469469

470470
/** @noinspection PhpUsageOfSilenceOperatorInspection */
471-
$ret = @\shell_exec('nproc');
471+
$ret = @\shell_exec('nproc 2>&1');
472472
if (\is_string($ret)) {
473473
$ret = \trim($ret);
474474
/** @noinspection PhpAssignmentInConditionInspection */

0 commit comments

Comments
 (0)