Skip to content

Commit 185744e

Browse files
committed
Psalm
1 parent 93ddd47 commit 185744e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Symfony/Component/Process/Process.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,11 @@ public function start(callable $callback = null, array $env = []): void
341341
}
342342

343343
$lastError = 'unknown reason';
344-
set_error_handler(function ($type, $msg) use (&$lastError) { $lastError = $msg; });
344+
set_error_handler(function ($type, $msg) use (&$lastError) {
345+
$lastError = $msg;
346+
347+
return true;
348+
});
345349
$process = @proc_open($commandline, $descriptors, $this->processPipes->pipes, $this->cwd, $envPairs, $this->options);
346350
restore_error_handler();
347351

0 commit comments

Comments
 (0)