Skip to content

Commit

Permalink
Fixed psalm self test
Browse files Browse the repository at this point in the history
  • Loading branch information
ygottschalk committed Jul 3, 2023
1 parent 8d1876a commit 42b3736
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Psalm/Internal/Cli/Psalm.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
use function array_merge;
use function array_slice;
use function array_sum;
use function array_unshift;
use function array_values;
use function chdir;
use function count;
Expand Down Expand Up @@ -185,11 +184,11 @@ public static function run(array $argv): void
}

// debug CI environment
if (!in_array('--debug', $options, true)
if (!array_key_exists('debug', $options)
&& 'true' === getenv('GITHUB_ACTIONS')
&& '1' === getenv('RUNNER_DEBUG')
) {
array_unshift($options, '--debug');
$options['debug'] = false;
}

self::forwardCliCall($options, $argv);
Expand Down

0 comments on commit 42b3736

Please sign in to comment.