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:
parent
a688bd6da3
commit
fc694d7a98
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user