mirror of
https://github.com/nextcloud/server.git
synced 2026-03-04 14:31:03 -05:00
Merge pull request #32485 from nextcloud/debt/noid/psalm-streamer-fh
[Psalm] Fix docblock for addFileFromStream
This commit is contained in:
commit
df89e7fd39
2 changed files with 3 additions and 3 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ use OCP\IRequest;
|
|||
* @since 15.0.0
|
||||
*/
|
||||
class ZipResponse extends Response implements ICallbackResponse {
|
||||
/** @var array{internalName: string, resource: string, size: int, time: int}[] Files to be added to the zip response */
|
||||
/** @var array{internalName: string, resource: resource, size: int, time: int}[] Files to be added to the zip response */
|
||||
private array $resources = [];
|
||||
/** @var string Filename that the zip file should have */
|
||||
private string $name;
|
||||
|
|
|
|||
Loading…
Reference in a new issue