Skip to content

Commit a7effb8

Browse files
committed
Fix #6037
1 parent 7c60ea1 commit a7effb8

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

components/yaml/introduction.rst

+3-10
Original file line numberDiff line numberDiff line change
@@ -135,16 +135,9 @@ It may also be convenient to use the
135135
136136
$yaml = Yaml::parse(file_get_contents('/path/to/file.yml'));
137137
138-
The :method:`Symfony\\Component\\Yaml\\Yaml::parse` static method takes a YAML
139-
string or a file containing YAML. Internally, it calls the
140-
:method:`Symfony\\Component\\Yaml\\Parser::parse` method, but enhances the
141-
error if something goes wrong by adding the filename to the message.
142-
143-
.. caution::
144-
145-
Because it is currently possible to pass a filename to this method, you
146-
must validate the input first. Passing a filename is deprecated in
147-
Symfony 2.2, and will be removed in Symfony 3.0.
138+
The :method:`Symfony\\Component\\Yaml\\Yaml::parse` static method takes a YAML string.
139+
Internally, it constructs a :class:`Symfony\\Component\\Yaml\\Parser` object and calls
140+
the :method:`Symfony\\Component\\Yaml\\Parser::parse` method.
148141

149142
.. _components-yaml-dump:
150143

0 commit comments

Comments
 (0)