Skip to content

Commit de635b9

Browse files
committed
🚿
1 parent 6ff757c commit de635b9

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

src/Psr17/factory_helpers.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
use function is_scalar, method_exists;
1616

17-
const PSR17_INCLUDES = true;
17+
const CHILLERLAN_PSR17_INCLUDES = true;
1818

1919
const STREAM_MODES_READ_WRITE = [
2020
'a+' => true,
@@ -81,7 +81,7 @@ function create_stream(string $content = '', string $mode = 'r+', bool $rewind =
8181
* @return \Psr\Http\Message\StreamInterface
8282
*/
8383
function create_stream_from_input($in = null):StreamInterface{
84-
$in = $in ?? '';
84+
$in ??= '';
8585

8686
// not sure about this one, it might cause:
8787
// a) trouble if the given string accidentally matches a file path, and

src/Psr18/StreamClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class StreamClient extends HTTPClientAbstract{
2222

2323
/**
2424
* @inheritDoc
25-
* @throws \Psr\Http\Client\ClientExceptionInterface
25+
* @throws \Psr\Http\Client\ClientExceptionInterface|\ErrorException
2626
*
2727
*/
2828
public function sendRequest(RequestInterface $request):ResponseInterface{

src/includes.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@
99
namespace chillerlan\HTTP;
1010

1111
// @codeCoverageIgnoreStart
12-
if(!\defined('PSR7_INCLUDES')){
13-
require_once __DIR__.'/Psr7/message_helpers.php';
14-
}
15-
16-
if(!\defined('PSR17_INCLUDES')){
12+
if(!\defined('CHILLERLAN_PSR17_INCLUDES')){
1713
require_once __DIR__.'/Psr17/factory_helpers.php';
1814
}
1915
// @codeCoverageIgnoreEnd

0 commit comments

Comments
 (0)