@@ -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; |
@@ -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; |
@@ -124,12 +124,12 @@ |
||
124 | 124 | |
125 | 125 | // @codeCoverageIgnoreStart |
126 | 126 | $msg = 'No system CA bundle could be found in any of the the common system locations. ' |
127 | - .'In order to verify peer certificates, you will need to supply the path on disk to a certificate bundle via ' |
|
128 | - .'HTTPOptions::$ca_info or HTTPOptions::$curl_options. If you do not need a specific certificate bundle, ' |
|
129 | - .'then you can download a CA bundle over here: https://curl.haxx.se/docs/caextract.html. ' |
|
130 | - .'Once you have a CA bundle available on disk, you can set the "curl.cainfo" php.ini setting to point ' |
|
131 | - .'to the path of the file, allowing you to omit the $ca_info or $curl_options setting. ' |
|
132 | - .'See http://curl.haxx.se/docs/sslcerts.html for more information.'; |
|
127 | + .'In order to verify peer certificates, you will need to supply the path on disk to a certificate bundle via ' |
|
128 | + .'HTTPOptions::$ca_info or HTTPOptions::$curl_options. If you do not need a specific certificate bundle, ' |
|
129 | + .'then you can download a CA bundle over here: https://curl.haxx.se/docs/caextract.html. ' |
|
130 | + .'Once you have a CA bundle available on disk, you can set the "curl.cainfo" php.ini setting to point ' |
|
131 | + .'to the path of the file, allowing you to omit the $ca_info or $curl_options setting. ' |
|
132 | + .'See http://curl.haxx.se/docs/sslcerts.html for more information.'; |
|
133 | 133 | |
134 | 134 | throw new ClientException($msg); |
135 | 135 | // @codeCoverageIgnoreEnd |