8000 [YAML] Refine the return value of Yaml::parse() · symfony/symfony@6a806e3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6a806e3

Browse files
committed
[YAML] Refine the return value of Yaml::parse()
1 parent 828fba4 commit 6a806e3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Symfony/Component/Yaml/Yaml.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@
2121
class Yaml
2222
{
2323
/**
24-
* Parses YAML into a PHP array.
25-
*
26-
* The parse method, when supplied with a YAML stream (string or file),
27-
* will do its best to convert YAML in a file into a PHP array.
24+
* Parses YAML into a PHP value.
2825
*
2926
* Usage:
3027
* <code>
@@ -40,7 +37,7 @@ class Yaml
4037
* @param bool $exceptionOnInvalidType True if an exception must be thrown on invalid types false otherwise
4138
* @param bool $objectSupport True if object support is enabled, false otherwise
4239
*
43-
* @return array The YAML converted to a PHP array
40+
* @return mixed The YAML converted to a PHP value
4441
*
4542
* @throws ParseException If the YAML is not valid
4643
*/

0 commit comments

Comments
 (0)
0