Skip to content

Commit 9b1f327

Browse files
committed
Changed note to caution; reworded; changed deprecation version
Looking at the Symfony code, this was actually deprecated in 2.2. Move the warning text to the front because the validation warning is more important than the deprecation notice.
1 parent a39078c commit 9b1f327

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

components/yaml/introduction.rst

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,11 @@ string or a file containing YAML. Internally, it calls the
134134
:method:`Symfony\\Component\\Yaml\\Parser::parse` method, but enhances the
135135
error if something goes wrong by adding the filename to the message.
136136

137-
.. note::
137+
.. caution::
138138

139-
Although it is currently possible to pass the
140-
:method:`Symfony\\Component\\Yaml\\Yaml::parse` static method a
141-
filename, this functionality is deprecated in Symfony 2.3, and will be
142-
removed in Symfony 3.0. Because it is possible to pass a filename, if
143-
you use this method, you must validate the input first.
139+
Because it is currently possible to pass a filename to this method, you
140+
must validate the input first. Passing a filename is deprecated in
141+
Symfony 2.2, and will be removed in Symfony 3.0.
144142

145143
Executing PHP Inside YAML Files
146144
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)