1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +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 a688bd6da3
commit fc694d7a98

View File

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