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:
parent
8d1876a8a3
commit
42b3736c39
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user