Quellcode durchsuchen

Fix docblock for addFileFromStream

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
tags/v25.0.0beta1
Daniel Kesselberg vor 2 Jahren
Ursprung
Commit
95ec67ecd7
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2
    2
      lib/private/Streamer.php

+ 2
- 2
lib/private/Streamer.php Datei anzeigen

@@ -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 = [

Laden…
Abbrechen
Speichern