Ensure phpstan exit code is passed along to the shell window and address some pr comments
MAILPOET-6318
This commit is contained in:
committed by
Jan Lysý
parent
b1cc53ec5b
commit
ccc3f9ab28
@@ -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 );
|
||||
|
Reference in New Issue
Block a user