From 6a806e32b7a173db5cce112d6d3b12bbec1b061c Mon Sep 17 00:00:00 2001 From: Jakub Zalas Date: Wed, 27 Jan 2016 16:53:33 +0000 Subject: [PATCH] [YAML] Refine the return value of Yaml::parse() --- src/Symfony/Component/Yaml/Yaml.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Symfony/Component/Yaml/Yaml.php b/src/Symfony/Component/Yaml/Yaml.php index cce18a657a..2e14a6c083 100644 --- a/src/Symfony/Component/Yaml/Yaml.php +++ b/src/Symfony/Component/Yaml/Yaml.php @@ -21,10 +21,7 @@ use Symfony\Component\Yaml\Exception\ParseException; class Yaml { /** - * Parses YAML into a PHP array. - * - * The parse method, when supplied with a YAML stream (string or file), - * will do its best to convert YAML in a file into a PHP array. + * Parses YAML into a PHP value. * * Usage: * @@ -40,7 +37,7 @@ class Yaml * @param bool $exceptionOnInvalidType True if an exception must be thrown on invalid types false otherwise * @param bool $objectSupport True if object support is enabled, false otherwise * - * @return array The YAML converted to a PHP array + * @return mixed The YAML converted to a PHP value * * @throws ParseException If the YAML is not valid */