]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix psalm warning for zip response due wrong type 32376/head
authorDaniel Kesselberg <mail@danielkesselberg.de>
Fri, 13 May 2022 09:10:42 +0000 (11:10 +0200)
committerDaniel Kesselberg <mail@danielkesselberg.de>
Fri, 13 May 2022 13:50:26 +0000 (15:50 +0200)
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
lib/public/AppFramework/Http/ZipResponse.php

index c3a7e089bdc1cd0189e1ed4c1c94c925d56ee561..7495583ae128185c2ad723739a732e1e0dfdf6e9 100644 (file)
@@ -37,11 +37,11 @@ use OCP\IRequest;
  * @since 15.0.0
  */
 class ZipResponse extends Response implements ICallbackResponse {
-       /** @var resource[] Files to be added to the zip response */
-       private $resources = [];
+       /** @var array{internalName: string, resource: string, 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 $name;
-       private $request;
+       private string $name;
+       private IRequest $request;
 
        /**
         * @since 15.0.0