1
0
mirror of synced 2025-02-02 21:41:45 +03:00

Merge pull request #6630 from doctrine/fix/remove-reliance-on-yaml-deprecated-constants

Remove reliance on Symfony\Component\Yaml deprecated constants
This commit is contained in:
Marco Pivetta 2017-08-16 20:52:18 +02:00 committed by GitHub
commit da109c36b7
2 changed files with 4 additions and 5 deletions

View File

@ -24,8 +24,11 @@
"doctrine/annotations": "~1.4",
"symfony/console": "~3.0|~4.0"
},
"conflict": {
"symfony/yaml": "<3.4"
},
"require-dev": {
"symfony/yaml": "~3.0|~4.0",
"symfony/yaml": "~3.4|~4.0",
"phpunit/phpunit": "^6.0"
},
"suggest": {

View File

@ -806,10 +806,6 @@ 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));
}
}