@@ -203,7 +203,7 @@ |
||
| 203 | 203 | * |
| 204 | 204 | * @author Michael Dowling and contributors to guzzlehttp/psr7 |
| 205 | 205 | * |
| 206 | - * @param StreamInterface $dest Stream to write to |
|
| 206 | + * @param \Psr\Http\Message\StreamInterface $dest Stream to write to |
|
| 207 | 207 | * |
| 208 | 208 | * @throws \RuntimeException on error |
| 209 | 209 | */ |
@@ -14,7 +14,8 @@ |
||
| 14 | 14 | |
| 15 | 15 | use chillerlan\HTTP\Psr17\StreamFactory; |
| 16 | 16 | use Psr\Http\Message\{StreamInterface, UploadedFileInterface}; |
| 17 | -use InvalidArgumentException, RuntimeException; |
|
| 17 | +use InvalidArgumentException; |
|
| 18 | +use RuntimeException; |
|
| 18 | 19 | |
| 19 | 20 | use function chillerlan\HTTP\Psr17\create_stream_from_input; |
| 20 | 21 | use function in_array, is_string, is_writable, move_uploaded_file, php_sapi_name,rename; |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | namespace chillerlan\HTTP\Psr18; |
| 14 | 14 | |
| 15 | 15 | use chillerlan\HTTP\HTTPOptions; |
| 16 | -use chillerlan\HTTP\Psr7\Request; |
|
| 17 | 16 | use chillerlan\HTTP\Psr17\ResponseFactory; |
| 17 | +use chillerlan\HTTP\Psr7\Request; |
|
| 18 | 18 | use chillerlan\Settings\SettingsContainerInterface; |
| 19 | 19 | use Psr\Http\Message\{ResponseFactoryInterface, ResponseInterface}; |
| 20 | 20 | use Psr\Log\{LoggerAwareInterface, LoggerAwareTrait, LoggerInterface, NullLogger}; |
@@ -14,7 +14,8 @@ |
||
| 14 | 14 | |
| 15 | 15 | namespace chillerlan\HTTP\Psr7; |
| 16 | 16 | |
| 17 | -use InvalidArgumentException, RuntimeException; |
|
| 17 | +use InvalidArgumentException; |
|
| 18 | +use RuntimeException; |
|
| 18 | 19 | |
| 19 | 20 | use function chillerlan\HTTP\Psr17\{create_stream, create_stream_from_input}; |
| 20 | 21 | use function array_merge, basename, pathinfo, random_bytes, sha1, strlen, strtolower, substr; |
@@ -12,7 +12,9 @@ |
||
| 12 | 12 | |
| 13 | 13 | namespace chillerlan\HTTP\Psr7; |
| 14 | 14 | |
| 15 | -use Exception, InvalidArgumentException, RuntimeException; |
|
| 15 | +use Exception; |
|
| 16 | +use InvalidArgumentException; |
|
| 17 | +use RuntimeException; |
|
| 16 | 18 | |
| 17 | 19 | use function clearstatcache, fclose, feof, fread, fstat, ftell, fwrite, is_resource, stream_get_contents, |
| 18 | 20 | stream_get_meta_data, trigger_error; |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
| 87 | - * @return void |
|
| 87 | + * @return CurlHandle |
|
| 88 | 88 | */ |
| 89 | 89 | public function close():CurlHandleInterface{ |
| 90 | 90 | |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | /** |
| 99 | - * @return void |
|
| 99 | + * @return CurlHandle |
|
| 100 | 100 | */ |
| 101 | 101 | public function reset():CurlHandleInterface{ |
| 102 | 102 | |
@@ -68,6 +68,9 @@ |
||
| 68 | 68 | 50 => 'application verification failure', |
| 69 | 69 | ]; |
| 70 | 70 | |
| 71 | + /** |
|
| 72 | + * @return void |
|
| 73 | + */ |
|
| 71 | 74 | public function __construct(RequestInterface $request, ResponseInterface $response, SettingsContainerInterface $options); |
| 72 | 75 | |
| 73 | 76 | public function init():CurlHandleInterface; |