From 92ac44c2ef24a2fc5eb08c4d9f352bcfeeb9260b Mon Sep 17 00:00:00 2001 From: Greg Bowler Date: Tue, 15 Oct 2024 12:46:50 +0100 Subject: [PATCH] ci: quick fix for stream uri --- src/Stream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }