Skip to content

Commit d6effe5

Browse files
committed
🚿
1 parent 77d1d76 commit d6effe5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/HTTPFactory.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ public static function createStreamFromSource(mixed $source = null):StreamInterf
121121

122122
if($type === 'resource'){
123123
// avoid using php://input and copy over the contents to a new stream
124-
if(stream_get_meta_data($source)['uri'] === 'php://input'){
124+
/** @phpstan-ignore-next-line */
125+
if((stream_get_meta_data($source)['uri'] ?? '') === 'php://input'){
125126
$stream = StreamUtil::tryFopen('php://temp', 'r+');
126127

127128
stream_copy_to_stream($source, $stream);

0 commit comments

Comments
 (0)