From d4f4a3126c4b3c8176026f5e36cc4ff0136f45b4 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 14 May 2019 19:48:01 +0100 Subject: [PATCH] Fixed signature of yaml_emit() --- yaml/yaml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yaml/yaml.php b/yaml/yaml.php index f2e2fa5a..95c0f882 100644 --- a/yaml/yaml.php +++ b/yaml/yaml.php @@ -71,7 +71,7 @@ function yaml_emit_file($filename,$data,$encoding=YAML_ANY_ENCODING,$linebreak=Y * @param array $callbacks [optional] Content handlers for YAML nodes. Associative array of YAML tag => callable mappings. See parse callbacks for more details. * @return string Returns a YAML encoded string on success. */ -function yaml_emit($data,$encoding,$linebreak,$callbacks=array()) {} +function yaml_emit($data,$encoding=YAML_ANY_ENCODING,$linebreak=YAML_ANY_BREAK,$callbacks=array()) {} /** * (PHP 5 >= 5.2.0, PECL yaml >= 0.4.0)