Force YAML parser to convert keys to string
Since Symfony 3.3 implicit conversion is not enabled by default so we need to pass that flag manually. Related to: https://github.com/symfony/symfony/pull/21774
This commit is contained in:
parent
f18e178960
commit
f9062d9931
@ -800,6 +800,10 @@ class YamlDriver extends FileDriver
|
||||
*/
|
||||
protected function loadMappingFile($file)
|
||||
{
|
||||
if (defined(Yaml::class . '::PARSE_KEYS_AS_STRINGS')) {
|
||||
return Yaml::parse(file_get_contents($file), Yaml::PARSE_KEYS_AS_STRINGS);
|
||||
}
|
||||
|
||||
return Yaml::parse(file_get_contents($file));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user