diff --git a/src/Psalm/Internal/Cli/Psalm.php b/src/Psalm/Internal/Cli/Psalm.php index 43b8afe5f81..98c16d5c23a 100644 --- a/src/Psalm/Internal/Cli/Psalm.php +++ b/src/Psalm/Internal/Cli/Psalm.php @@ -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) {