Skip to content

Commit e6e4c2f

Browse files
authored
Merge pull request #32 from imjcw/bugfix/issues-31
Fixed typo #31
2 parents b254faa + 8cfcae5 commit e6e4c2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public function upload(string $uri, array $files = [], array $form = [], array $
234234
$multipart = [];
235235

236236
foreach ($files as $name => $contents) {
237-
$contents = \is_resource($contents) ?: \fopen($contents, 'r');
237+
$contents = \is_resource($contents) ? $contents : \fopen($contents, 'r');
238238
$multipart[] = \compact('name', 'contents');
239239
}
240240

0 commit comments

Comments
 (0)