Skip to content

Commit 1819adf

Browse files
Merge branch '3.0' into 3.1
* 3.0: [VarDumper] Fix dumping jsons casted as arrays PassConfig::getMergePass is not an array Revert "bug #19114 [HttpKernel] Dont close the reponse stream in debug (nicolas-grekas)" Fix the retrieval of the last username when using forwarding [Yaml] Fix PHPDoc of the Yaml class [HttpFoundation] Add OPTIONS and TRACE to the list of safe methods Update getAbsoluteUri() for query string uris Conflicts: src/Symfony/Component/Yaml/Yaml.php
2 parents 7a7c4d1 + 2a9101d commit 1819adf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Yaml.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,19 @@ public static function parse($input, $flags = 0)
7979
}
8080

8181
/**
82-
* Dumps a PHP array to a YAML string.
82+
* Dumps a PHP value to a YAML string.
8383
*
8484
* The dump method, when supplied with an array, will do its best
8585
* to convert the array into friendly YAML.
8686
*
87-
* @param array $array PHP array
87+
* @param mixed $input The PHP value
8888
* @param int $inline The level where you switch to inline YAML
8989
* @param int $indent The amount of spaces to use for indentation of nested nodes
9090
* @param int $flags A bit field of DUMP_* constants to customize the dumped YAML string
9191
*
92-
* @return string A YAML string representing the original PHP array
92+
* @return string A YAML string representing the original PHP value
9393
*/
94-
public static function dump($array, $inline = 2, $indent = 4, $flags = 0)
94+
public static function dump($input, $inline = 2, $indent = 4, $flags = 0)
9595
{
9696
if (is_bool($flags)) {
9797
@trigger_error('Passing a boolean flag to toggle exception handling is deprecated since version 3.1 and will be removed in 4.0. Use the DUMP_EXCEPTION_ON_INVALID_TYPE flag instead.', E_USER_DEPRECATED);
@@ -113,6 +113,6 @@ public static function dump($array, $inline = 2, $indent = 4, $flags = 0)
113113

114114
$yaml = new Dumper($indent);
115115

116-
return $yaml->dump($array, $inline, 0, $flags);
116+
return $yaml->dump($input, $inline, 0, $flags);
117117
}
118118
}

0 commit comments

Comments
 (0)