diff --git a/src/Psalm/Internal/Cli/Psalm.php b/src/Psalm/Internal/Cli/Psalm.php index 5ccc4fa1cb8..ee14bec18aa 100644 --- a/src/Psalm/Internal/Cli/Psalm.php +++ b/src/Psalm/Internal/Cli/Psalm.php @@ -186,7 +186,7 @@ public static function run(array $argv): void // debug CI environment if (!in_array('--debug', $options, true) && 'true' === getenv('GITHUB_ACTIONS') && '1' === getenv('RUNNER_DEBUG')) { - array_unshift('--debug', $options); + array_unshift($options, '--debug'); } self::forwardCliCall($options, $argv);