diff --git a/src/Utils.php b/src/Utils.php index df50fdd0..76844f87 100644 --- a/src/Utils.php +++ b/src/Utils.php @@ -302,7 +302,7 @@ public static function streamFor($resource = '', array $options = []): StreamInt */ /** @var resource $resource */ - if (\stream_get_meta_data($resource)['uri'] === 'php://input') { + if ((\stream_get_meta_data($resource)['uri'] ?? '') === 'php://input') { $stream = self::tryFopen('php://temp', 'w+'); fwrite($stream, stream_get_contents($resource)); fseek($stream, 0);