@@ -430,7 +430,7 @@ discard block |
||
430 | 430 | * |
431 | 431 | * @link https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-start |
432 | 432 | * |
433 | - * @param string|StreamInterface $contents |
|
433 | + * @param Psr7\LimitStream $contents |
|
434 | 434 | * @param bool $close |
435 | 435 | * |
436 | 436 | * @return UploadSessionCursor |
@@ -454,7 +454,7 @@ discard block |
||
454 | 454 | * |
455 | 455 | * @link https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-append_v2 |
456 | 456 | * |
457 | - * @param string|StreamInterface $contents |
|
457 | + * @param Psr7\LimitStream $contents |
|
458 | 458 | * @param UploadSessionCursor $cursor |
459 | 459 | * @param bool $close |
460 | 460 | * |
@@ -478,10 +478,10 @@ discard block |
||
478 | 478 | * |
479 | 479 | * @link https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-finish |
480 | 480 | * |
481 | - * @param string|StreamInterface $contents |
|
481 | + * @param string $contents |
|
482 | 482 | * @param \Spatie\Dropbox\UploadSessionCursor $cursor |
483 | 483 | * @param string $path |
484 | - * @param string|array $mode |
|
484 | + * @param string $mode |
|
485 | 485 | * @param bool $autorename |
486 | 486 | * @param bool $mute |
487 | 487 | * |
@@ -3,18 +3,18 @@ |
||
3 | 3 | namespace Spatie\Dropbox; |
4 | 4 | |
5 | 5 | use Exception; |
6 | -use GuzzleHttp\Psr7; |
|
7 | -use GuzzleHttp\Middleware; |
|
6 | +use GuzzleHttp\Client as GuzzleClient; |
|
7 | +use GuzzleHttp\Exception\ClientException; |
|
8 | +use GuzzleHttp\Exception\ConnectException; |
|
9 | +use GuzzleHttp\Exception\RequestException; |
|
8 | 10 | use GuzzleHttp\HandlerStack; |
11 | +use GuzzleHttp\Middleware; |
|
12 | +use GuzzleHttp\Psr7; |
|
9 | 13 | use GuzzleHttp\Psr7\PumpStream; |
10 | 14 | use GuzzleHttp\Psr7\StreamWrapper; |
11 | -use Psr\Http\Message\StreamInterface; |
|
12 | -use GuzzleHttp\Client as GuzzleClient; |
|
13 | 15 | use Psr\Http\Message\ResponseInterface; |
14 | -use GuzzleHttp\Exception\ClientException; |
|
16 | +use Psr\Http\Message\StreamInterface; |
|
15 | 17 | use Spatie\Dropbox\Exceptions\BadRequest; |
16 | -use GuzzleHttp\Exception\ConnectException; |
|
17 | -use GuzzleHttp\Exception\RequestException; |
|
18 | 18 | |
19 | 19 | class Client |
20 | 20 | { |