Skip to content

Commit 9798ead

Browse files
GuilhemNxabbuh
authored andcommitted
[Yaml] Recommend using quotes instead of PARSE_KEYS_AS_STRINGS
1 parent 5d8d766 commit 9798ead

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
@@ -17,7 +17,6 @@
1717
use Symfony\Component\Yaml\Exception\ParseException;
1818
use Symfony\Component\Yaml\Parser as YamlParser;
1919
use Symfony\Component\Config\Loader\FileLoader;
20-
use Symfony\Component\Yaml\Yaml;
2120

2221
/**
2322
* YamlFileLoader loads Yaml routing files.
@@ -59,7 +58,7 @@ public function load($file, $type = null)
5958
}
6059

6160
try {
62-
$parsedConfig = $this->yamlParser->parse(file_get_contents($path), Yaml::PARSE_KEYS_AS_STRINGS);
61+
$parsedConfig = $this->yamlParser->parse(file_get_contents($path));
6362
} catch (ParseException $e) {
6463
throw new \InvalidArgumentException(sprintf('The file "%s" does not contain valid YAML.', $path), 0, $e);
6564
}

0 commit comments

Comments
 (0)