Skip to content

Commit 6cfb56f

Browse files
Merge branch '3.4'
* 3.4: [Yaml] Recommend using quotes instead of PARSE_KEYS_AS_STRINGS [DependencyInjection] Deprecate autowiring service auto-registration Removed useless argument $definition [DI] Generate shorter method names for class-based ids Fix comment [Config] Fix checking class existence freshness bumped Symfony version to 3.3.7 updated VERSION for 3.3.6 updated CHANGELOG for 3.3.6 Autoconfigure instances of ArgumentValueResolverInterface Deprecate Filesystem/LockHandler improve sql explain table display Bump minimal PHP version to ^5.5.9|>=7.0.8
2 parents 451f20e + a13d23e commit 6cfb56f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Loader/YamlFileLoader.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use Symfony\Component\Translation\Exception\LogicException;
1616
use Symfony\Component\Yaml\Parser as YamlParser;
1717
use Symfony\Component\Yaml\Exception\ParseException;
18-
use Symfony\Component\Yaml\Yaml;
1918

2019
/**
2120
* YamlFileLoader loads translations from Yaml files.
@@ -40,7 +39,7 @@ protected function loadResource($resource)
4039
}
4140

4241
try {
43-
$messages = $this->yamlParser->parse(file_get_contents($resource), Yaml::PARSE_KEYS_AS_STRINGS);
42+
$messages = $this->yamlParser->parse(file_get_contents($resource));
4443
} catch (ParseException $e) {
4544
throw new InvalidResourceException(sprintf('Error parsing YAML, invalid file "%s"', $resource), 0, $e);
4645
}

0 commit comments

Comments
 (0)