From 8cfcae519edc385ded415f1716c77e1c2f24b758 Mon Sep 17 00:00:00 2001 From: imjcw Date: Thu, 24 Feb 2022 05:49:05 +0000 Subject: [PATCH] Fixed typo #31 --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index fa6538e..9b95a08 100644 --- a/src/Client.php +++ b/src/Client.php @@ -234,7 +234,7 @@ public function upload(string $uri, array $files = [], array $form = [], array $ $multipart = []; foreach ($files as $name => $contents) { - $contents = \is_resource($contents) ?: \fopen($contents, 'r'); + $contents = \is_resource($contents) ? $contents : \fopen($contents, 'r'); $multipart[] = \compact('name', 'contents'); }