Skip to content

Commit

Permalink
Fix option name
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Jan 30, 2025
1 parent 70ef51f commit 0858954
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Psalm/Internal/Cli/Psalm.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,8 @@ public static function getThreads(array $options, Config $config, bool $in_ci, b
}

if ($for_scan) {
if (isset($options['scanThreads'])) {
$threads = max(1, (int)$options['scanThreads']);
if (isset($options['scan-threads'])) {
$threads = max(1, (int)$options['scan-threads']);
} elseif (isset($options['debug']) || $in_ci) {
$threads = 1;
} elseif ($config->scan_threads) {
Expand Down

0 comments on commit 0858954

Please sign in to comment.