Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a3fd991

Browse filesBrowse files
dunglasxabbuh
authored andcommitted
[Yaml] Fix PHPDoc of the Yaml class
1 parent 500c2cd commit a3fd991
Copy full SHA for a3fd991

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed

‎src/Symfony/Component/Yaml/Yaml.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Yaml/Yaml.php
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,20 +73,20 @@ public static function parse($input, $exceptionOnInvalidType = false, $objectSup
7373
}
7474

7575
/**
76-
* Dumps a PHP array to a YAML string.
76+
* Dumps a PHP value to a YAML string.
7777
*
7878
* The dump method, when supplied with an array, will do its best
7979
* to convert the array into friendly YAML.
8080
*
81-
* @param array $array PHP array
81+
* @param mixed $input The PHP value
8282
* @param int $inline The level where you switch to inline YAML
8383
* @param int $indent The amount of spaces to use for indentation of nested nodes
8484
* @param bool $exceptionOnInvalidType true if an exception must be thrown on invalid types (a PHP resource or object), false otherwise
8585
* @param bool $objectSupport true if object support is enabled, false otherwise
8686
*
87-
* @return string A YAML string representing the original PHP array
87+
* @return string A YAML string representing the original PHP value
8888
*/
89-
public static function dump($array, $inline = 2, $indent = 4, $exceptionOnInvalidType = false, $objectSupport = false)
89+
public static function dump($input, $inline = 2, $indent = 4, $exceptionOnInvalidType = false, $objectSupport = false)
9090
{
9191
if ($indent < 1) {
9292
throw new \InvalidArgumentException('The indentation must be greater than zero.');
@@ -95,6 +95,6 @@ public static function dump($array, $inline = 2, $indent = 4, $exceptionOnInvali
9595
$yaml = new Dumper();
9696
$yaml->setIndentation($indent);
9797

98-
return $yaml->dump($array, $inline, 0, $exceptionOnInvalidType, $objectSupport);
98+
return $yaml->dump($input, $inline, 0, $exceptionOnInvalidType, $objectSupport);
9999
}
100100
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.