@@ -73,20 +73,20 @@ public static function parse($input, $exceptionOnInvalidType = false, $objectSup
73
73
}
74
74
75
75
/**
76
- * Dumps a PHP array to a YAML string.
76
+ * Dumps a PHP value to a YAML string.
77
77
*
78
78
* The dump method, when supplied with an array, will do its best
79
79
* to convert the array into friendly YAML.
80
80
*
81
- * @param array $array PHP array
81
+ * @param mixed $input The PHP value
82
82
* @param int $inline The level where you switch to inline YAML
83
83
* @param int $indent The amount of spaces to use for indentation of nested nodes
84
84
* @param bool $exceptionOnInvalidType true if an exception must be thrown on invalid types (a PHP resource or object), false otherwise
85
85
* @param bool $objectSupport true if object support is enabled, false otherwise
86
86
*
87
- * @return string A YAML string representing the original PHP array
87
+ * @return string A YAML string representing the original PHP value
88
88
*/
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 )
90
90
{
91
91
if ($ indent < 1 ) {
92
92
throw new \InvalidArgumentException ('The indentation must be greater than zero. ' );
@@ -95,6 +95,6 @@ public static function dump($array, $inline = 2, $indent = 4, $exceptionOnInvali
95
95
$ yaml = new Dumper ();
96
96
$ yaml ->setIndentation ($ indent );
97
97
98
- return $ yaml ->dump ($ array , $ inline , 0 , $ exceptionOnInvalidType , $ objectSupport );
98
+ return $ yaml ->dump ($ input , $ inline , 0 , $ exceptionOnInvalidType , $ objectSupport );
99
99
}
100
100
}
0 commit comments