From a0ac592ea0c8c7701c25b8f60a059a7fd4a14568 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 17 May 2012 17:59:42 +0200 Subject: [PATCH] Adding typehints. --- wcfsetup/install/files/lib/util/FileUtil.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/util/FileUtil.class.php b/wcfsetup/install/files/lib/util/FileUtil.class.php index f9c7128b16..0bfdf21f5b 100644 --- a/wcfsetup/install/files/lib/util/FileUtil.class.php +++ b/wcfsetup/install/files/lib/util/FileUtil.class.php @@ -393,9 +393,12 @@ final class FileUtil { * * @param string $httpUrl * @param string $prefix + * @param array $options + * @param array $postParameters + * @param array $headers Should be either an empty array or a not initialized variable. * @return string path to the dowloaded file */ - public static function downloadFileFromHttp($httpUrl, $prefix = 'package', $options = array(), $postParameters = array(), &$headers = array()) { + public static function downloadFileFromHttp($httpUrl, $prefix = 'package', array $options = array(), array $postParameters = array(), array &$headers = array()) { $newFileName = self::getTemporaryFilename($prefix.'_'); $localFile = new File($newFileName); // the file to write. -- 2.20.1