aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Streamer.php
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2022-05-18 21:41:09 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2022-05-24 22:05:59 +0200
commit95ec67ecd7d47eeb2d120a7ceedde2d73a90b97f (patch)
treebcd9128602f6b6b4496ff26142e4e6af7325f346 /lib/private/Streamer.php
parent1fc2e903a7a2ba8a463a2ae88946f17059e405cb (diff)
downloadnextcloud-server-95ec67ecd7d47eeb2d120a7ceedde2d73a90b97f.tar.gz
nextcloud-server-95ec67ecd7d47eeb2d120a7ceedde2d73a90b97f.zip
Fix docblock for addFileFromStream
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib/private/Streamer.php')
-rw-r--r--lib/private/Streamer.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Streamer.php b/lib/private/Streamer.php
index 80ab5a5524c..88204be9805 100644
--- a/lib/private/Streamer.php
+++ b/lib/private/Streamer.php
@@ -148,13 +148,13 @@ class Streamer {
/**
* Add a file to the archive at the specified location and file name.
*
- * @param string $stream Stream to read data from
+ * @param resource $stream Stream to read data from
* @param string $internalName Filepath and name to be used in the archive.
* @param int $size Filesize
* @param int|bool $time File mtime as int, or false
* @return bool $success
*/
- public function addFileFromStream($stream, $internalName, $size, $time) {
+ public function addFileFromStream($stream, string $internalName, int $size, $time): bool {
$options = [];
if ($time) {
$options = [