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

Use more readable for Psalm expressions

This commit is contained in:
Alies Lapatsin 2023-01-20 09:39:27 +01:00
parent fdd5e2ebdb
commit ca063a46d9

View File

@ -1158,7 +1158,7 @@ final class Psalm
);
}
$is_shepherd_enabled = (bool) (array_key_exists('shepherd', $options) ?? getenv('PSALM_SHEPHERD'));
$is_shepherd_enabled = isset($options['shepherd']) || getenv('PSALM_SHEPHERD');
if (! $is_shepherd_enabled) {
return;
}