Skip to content

Commit a6ed958

Browse files
committed
minor #6038 Fix #6037 (zsturgess)
This PR was merged into the 3.0 branch. Discussion ---------- Fix #6037 | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | >= 3.0 | Fixed tickets | #6037 Removed an outdated caution block and rewrote an outdated paragraph. Hopefully I've done everything correctly *crosses fingers* Commits ------- a7effb8 Fix #6037
2 parents 7c60ea1 + a7effb8 commit a6ed958

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

components/yaml/introduction.rst

Lines changed: 3 additions & 10 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy