Skip to content

Commit

Permalink
Merge pull request #9990 from ygottschalk/fix/9989-psalm-self-test
Browse files Browse the repository at this point in the history
Fixed psalm self test
  • Loading branch information
orklah authored Jul 3, 2023
2 parents 8d1876a + e819a60 commit bc46938
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 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 @@ -167,6 +166,7 @@ final class Psalm

/**
* @param array<int,string> $argv
* @psalm-suppress ComplexMethod Maybe some of the option handling could be moved to its own function...
*/
public static function run(array $argv): void
{
Expand All @@ -185,11 +185,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 bc46938

Please sign in to comment.