@@ -382,7 +382,7 @@ discard block |
||
| 382 | 382 | * |
| 383 | 383 | * @link https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-start |
| 384 | 384 | * |
| 385 | - * @param string|StreamInterface $contents |
|
| 385 | + * @param Psr7\LimitStream $contents |
|
| 386 | 386 | * @param bool $close |
| 387 | 387 | * |
| 388 | 388 | * @return UploadSessionCursor |
@@ -406,7 +406,7 @@ discard block |
||
| 406 | 406 | * |
| 407 | 407 | * @link https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-append_v2 |
| 408 | 408 | * |
| 409 | - * @param string|StreamInterface $contents |
|
| 409 | + * @param Psr7\LimitStream $contents |
|
| 410 | 410 | * @param UploadSessionCursor $cursor |
| 411 | 411 | * @param bool $close |
| 412 | 412 | * |
@@ -430,10 +430,10 @@ discard block |
||
| 430 | 430 | * |
| 431 | 431 | * @link https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-finish |
| 432 | 432 | * |
| 433 | - * @param string|StreamInterface $contents |
|
| 433 | + * @param string $contents |
|
| 434 | 434 | * @param \Spatie\Dropbox\UploadSessionCursor $cursor |
| 435 | 435 | * @param string $path |
| 436 | - * @param string|array $mode |
|
| 436 | + * @param string $mode |
|
| 437 | 437 | * @param bool $autorename |
| 438 | 438 | * @param bool $mute |
| 439 | 439 | * |
@@ -3,14 +3,14 @@ |
||
| 3 | 3 | namespace Spatie\Dropbox; |
| 4 | 4 | |
| 5 | 5 | use Exception; |
| 6 | +use GuzzleHttp\Client as GuzzleClient; |
|
| 7 | +use GuzzleHttp\Exception\ClientException; |
|
| 8 | +use GuzzleHttp\Exception\RequestException; |
|
| 6 | 9 | use GuzzleHttp\Psr7; |
| 7 | 10 | use GuzzleHttp\Psr7\StreamWrapper; |
| 8 | -use Psr\Http\Message\StreamInterface; |
|
| 9 | -use GuzzleHttp\Client as GuzzleClient; |
|
| 10 | 11 | use Psr\Http\Message\ResponseInterface; |
| 11 | -use GuzzleHttp\Exception\ClientException; |
|
| 12 | +use Psr\Http\Message\StreamInterface; |
|
| 12 | 13 | use Spatie\Dropbox\Exceptions\BadRequest; |
| 13 | -use GuzzleHttp\Exception\RequestException; |
|
| 14 | 14 | |
| 15 | 15 | class Client |
| 16 | 16 | { |