Skip to content

Commit f9062d9

Browse files
committed
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: symfony/symfony#21774
1 parent f18e178 commit f9062d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,10 @@ private function cacheToArray($cacheMapping)
800800
*/
801801
protected function loadMappingFile($file)
802802
{
803+
if (defined(Yaml::class . '::PARSE_KEYS_AS_STRINGS')) {
804+
return Yaml::parse(file_get_contents($file), Yaml::PARSE_KEYS_AS_STRINGS);
805+
}
806+
803807
return Yaml::parse(file_get_contents($file));
804808
}
805809
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy