1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Fix phpcs

This commit is contained in:
Matthew Brown 2020-02-18 15:08:23 -05:00
parent eadf2f8492
commit 87d8947ff3

View File

@ -204,9 +204,12 @@ class Pool
// Serialize this child's produced results and send them to the parent.
$process_done_message = new ForkProcessDoneMessage($results ?: []);
} catch (\Throwable $t) {
// This can happen when developing Psalm from source without running `composer update`, or because of rare bugs in Psalm.
// This can happen when developing Psalm from source without running `composer update`,
// or because of rare bugs in Psalm.
/** @psalm-suppress MixedArgument on Windows, for some reason */
$process_done_message = new ForkProcessErrorMessage($t->getMessage() . "\nStack trace in the forked worker:\n" . $t->getTraceAsString());
$process_done_message = new ForkProcessErrorMessage(
$t->getMessage() . "\nStack trace in the forked worker:\n" . $t->getTraceAsString()
);
}
$serialized_message = $task_done_buffer . base64_encode(serialize($process_done_message)) . "\n";