We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77d1d76 commit d6effe5Copy full SHA for d6effe5
src/HTTPFactory.php
@@ -121,7 +121,8 @@ public static function createStreamFromSource(mixed $source = null):StreamInterf
121
122
if($type === 'resource'){
123
// avoid using php://input and copy over the contents to a new stream
124
- if(stream_get_meta_data($source)['uri'] === 'php://input'){
+ /** @phpstan-ignore-next-line */
125
+ if((stream_get_meta_data($source)['uri'] ?? '') === 'php://input'){
126
$stream = StreamUtil::tryFopen('php://temp', 'r+');
127
128
stream_copy_to_stream($source, $stream);
0 commit comments