Skip to content

Commit

Permalink
Merge pull request #102 from dmitryuk/fix-phpstan
Browse files Browse the repository at this point in the history
uploadSessionStart and uploadSessionFinish can accept resource
  • Loading branch information
freekmurze authored Jun 24, 2022
2 parents 4558a26 + f6fc4ce commit 9a51534
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
],
"require": {
"php": "^7.1|^8.0",
"ext-json": "*",
"graham-campbell/guzzle-factory": "^3.0|^4.0|^5.0",
"guzzlehttp/guzzle": "^6.2|^7.0"
},
Expand Down
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ protected function uploadChunk($type, &$stream, $chunkSize, $cursor = null): Upl
*
* @link https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-start
*
* @param string|StreamInterface $contents
* @param string|resource|StreamInterface $contents
* @param bool $close
*
* @return UploadSessionCursor
Expand Down Expand Up @@ -544,7 +544,7 @@ public function uploadSessionAppend($contents, UploadSessionCursor $cursor, bool
*
* @link https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-finish
*
* @param string|StreamInterface $contents
* @param string|resource|StreamInterface $contents
* @param \Spatie\Dropbox\UploadSessionCursor $cursor
* @param string $path
* @param string|array $mode
Expand Down

0 comments on commit 9a51534

Please sign in to comment.