1
0
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:
Andrii Dembitskyi 2019-01-21 13:02:45 +02:00 committed by Matthew Brown
parent 279912cb55
commit 9b6b79728e

View File

@ -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';
}