1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Allow psalm to load threads from the config

This commit is contained in:
m1ke 2022-01-20 09:49:45 +00:00
parent 5a6dccd4a9
commit 1b8f337748

View File

@ -563,6 +563,9 @@ class Config
*/
public $internal_stubs = [];
/** @var ?int */
public $threads;
protected function __construct()
{
self::$instance = $this;
@ -1222,6 +1225,10 @@ class Config
}
}
if (isset($config_xml->threads)) {
$config->threads = (int)$config_xml->threads;
}
return $config;
}