From f0e285696398aaf9c8d25ed9ebd0c8f44ca3a195 Mon Sep 17 00:00:00 2001 From: "Roland Franssen :)" Date: Sat, 1 Jul 2023 13:36:42 +0200 Subject: [PATCH] Update PsalmRunnerTrait.php --- tests/EndToEnd/PsalmRunnerTrait.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/EndToEnd/PsalmRunnerTrait.php b/tests/EndToEnd/PsalmRunnerTrait.php index 8edea3c51..87524768e 100644 --- a/tests/EndToEnd/PsalmRunnerTrait.php +++ b/tests/EndToEnd/PsalmRunnerTrait.php @@ -23,7 +23,9 @@ trait PsalmRunnerTrait bool $relyOnConfigDir = true ): array { // Ensure CI agnostic output - array_unshift($args, '--output-format=console'); + if (!in_array('--init', $args, true)) { + array_unshift($args, '--output-format=console'); + } // As config files all contain `resolveFromConfigFile="true"` Psalm // shouldn't need to be run from the same directory that the code being