Skip to content

Commit 8715713

Browse files
committed
Merge pull request #538 from carlossg00/fix_yaml_load
updated doc
2 parents 9c0e585 + e7e7cb1 commit 8715713

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

reference/YAML.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ occurred::
4848
different YAML strings.
4949

5050
When loading a YAML file, it is sometimes better to use the
51-
:method:`Symfony\\Component\\Yaml\\Yaml::load` wrapper method::
51+
:method:`Symfony\\Component\\Yaml\\Yaml::parse` wrapper method::
5252

5353
use Symfony\Component\Yaml\Yaml;
5454

55-
$loader = Yaml::load('/path/to/file.yml');
55+
$loader = Yaml::parse('/path/to/file.yml');
5656

57-
The ``Yaml::load()`` static method takes a YAML string or a file containing
57+
The ``Yaml::parse()`` static method takes a YAML string or a file containing
5858
YAML. Internally, it calls the ``Parser::parse()`` method, but with some added
5959
bonuses:
6060

0 commit comments

Comments
 (0)