From: Tim Düsterhus Date: Thu, 17 May 2012 15:59:42 +0000 (+0200) Subject: Adding typehints. X-Git-Tag: 2.0.0_Beta_1~1101^2~7^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a0ac592ea0c8c7701c25b8f60a059a7fd4a14568;p=GitHub%2FWoltLab%2FWCF.git Adding typehints. --- 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.