diff --git a/src/Psalm/Internal/Cli/Psalm.php b/src/Psalm/Internal/Cli/Psalm.php index bdfb6d218..7917e1a0b 100644 --- a/src/Psalm/Internal/Cli/Psalm.php +++ b/src/Psalm/Internal/Cli/Psalm.php @@ -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; }