Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f9062d9

Browse filesBrowse 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
Copy full SHA for f9062d9

File tree

1 file changed

+4
-0
lines changed
Filter options

1 file changed

+4
-0
lines changed

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

Copy file name to clipboardExpand all lines: lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php
+4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.