1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Fixed psalm self test

This commit is contained in:
Yannick Gottschalk 2023-07-03 10:24:26 +02:00
parent 8d1876a8a3
commit 42b3736c39

View File

@ -41,7 +41,6 @@ use function array_map;
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;
@ -185,11 +184,11 @@ final class Psalm
}
// 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);