diff --git a/src/Stream.php b/src/Stream.php index bd59417..3806e5a 100644 --- a/src/Stream.php +++ b/src/Stream.php @@ -39,7 +39,7 @@ public function __construct( $streamInfo = stream_get_meta_data($this->stream); $this->isSeekable = $streamInfo["seekable"]; - $this->uri = $streamInfo["uri"]; + $this->uri = $streamInfo["uri"] ?? ""; $this->isReadable = in_array($streamInfo["mode"], self::READABLE_MODES); $this->isWritable = in_array($streamInfo["mode"], self::WRITABLE_MODES); }