Browse Source
Fix docblock for addFileFromStream
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
pull/32485/head
Daniel Kesselberg
4 years ago
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
1 changed files with
2 additions and
2 deletions
-
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 = [ |
|
|
|
|