Skip to content

Commit ea5a2e2

Browse files
committed
Fix
1 parent 600fe77 commit ea5a2e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Psalm/Internal/Cli/Psalm.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ private static function restart(array $options, int $threads, int $scanThreads,
991991

992992
$overcommit = null;
993993
try {
994-
$overcommit = trim(file_get_contents('/proc/sys/vm/overcommit_memory'));
994+
$overcommit = trim(file_get_contents('/proc/sys/vm/overcommit_memory') ?: '');
995995
} catch (Throwable) {
996996
}
997997

0 commit comments

Comments
 (0)