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:
commit
da109c36b7
@ -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": {
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user