From 7d9052d4b9d4ac690c32d7f9e79da2a06b0df055 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 2 Oct 2018 08:17:27 +0200 Subject: [PATCH] fixup! Add fix response Signed-off-by: Roeland Jago Douma --- lib/public/AppFramework/Http/ZipResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/public/AppFramework/Http/ZipResponse.php b/lib/public/AppFramework/Http/ZipResponse.php index c70482a0a9..712af17d2d 100644 --- a/lib/public/AppFramework/Http/ZipResponse.php +++ b/lib/public/AppFramework/Http/ZipResponse.php @@ -46,7 +46,7 @@ class ZipResponse extends Response implements ICallbackResponse { public function addResource($r, string $internalName, int $size, int $time = -1) { if (!\is_resource($r)) { - return; + throw new \InvalidArgumentException('No resource provided'); } $this->resources[] = [