mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Fixes #1222 - incorrect config value used for allowStringToStandInForClass
Please make attention, that `allowCoercionFromStringToClassConst` are mentioned in docs, but not used now in config
This commit is contained in:
parent
279912cb55
commit
9b6b79728e
@ -570,7 +570,7 @@ class Config
|
||||
}
|
||||
|
||||
if (isset($config_xml['allowStringToStandInForClass'])) {
|
||||
$attribute_text = (string) $config_xml['allowCoercionFromStringToClassConst'];
|
||||
$attribute_text = (string) $config_xml['allowStringToStandInForClass'];
|
||||
$config->allow_string_standin_for_class = $attribute_text === 'true' || $attribute_text === '1';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user