Skip to content

Commit

Permalink
Merge pull request #32 from imjcw/bugfix/issues-31
Browse files Browse the repository at this point in the history
Fixed typo #31
  • Loading branch information
overtrue committed Mar 14, 2022
2 parents b254faa + 8cfcae5 commit e6e4c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down

0 comments on commit e6e4c2f

Please sign in to comment.