Ensure phpstan exit code is passed along to the shell window and address some pr comments

MAILPOET-6318
This commit is contained in:
Oluwaseun Olorunsola
2024-11-28 18:34:51 +01:00
committed by Jan Lysý
parent b1cc53ec5b
commit ccc3f9ab28
4 changed files with 12 additions and 10 deletions

View File

@@ -47,4 +47,6 @@ $all_commands = implode( ' ', $commands );
echo "[run-phpstan] Running command: $all_commands \n"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- This file is not used within WordPress environment.
passthru( $all_commands ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.system_calls_passthru -- This file is not used within WordPress environment.
$result_code = 0;
passthru( $all_commands, $result_code ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.system_calls_passthru -- This file is not used within WordPress environment.
exit( (int) $result_code );