Skip to content

Commit 0005c56

Browse files
committed
minor symfony#17576 [YAML] Refine the return value of Yaml::parse() (jakzal)
This PR was merged into the 2.3 branch. Discussion ---------- [YAML] Refine the return value of Yaml::parse() | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 6a806e3 [YAML] Refine the return value of Yaml::parse()
2 parents 828fba4 + 6a806e3 commit 0005c56

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)