diff --git a/src/HTTPFactory.php b/src/HTTPFactory.php index 3258d40..1040a09 100644 --- a/src/HTTPFactory.php +++ b/src/HTTPFactory.php @@ -121,6 +121,7 @@ public static function createStreamFromSource(mixed $source = null):StreamInterf if($type === 'resource'){ // avoid using php://input and copy over the contents to a new stream + /** @phpstan-ignore-next-line */ if((stream_get_meta_data($source)['uri'] ?? '') === 'php://input'){ $stream = StreamUtil::tryFopen('php://temp', 'r+');