From e13eac3a2d7bf4c24c3af924718e506825b42c78 Mon Sep 17 00:00:00 2001 From: Saransh Dhingra Date: Thu, 27 Jan 2022 16:35:32 +0530 Subject: [PATCH] fix(storage): Added stream_set_option in StreamWrapper (#5067) --- Storage/src/StreamWrapper.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Storage/src/StreamWrapper.php b/Storage/src/StreamWrapper.php index 2b268c88fd18..67a8cee373cb 100644 --- a/Storage/src/StreamWrapper.php +++ b/Storage/src/StreamWrapper.php @@ -119,6 +119,16 @@ public function __destruct() $this->stream_close(); } + /** + * Starting PHP 7.4, this is called when include/require is used on a stream. + * Absence of this method presents a warning. + * https://www.php.net/manual/en/migration74.incompatible.php + */ + public function stream_set_option() + { + return false; + } + /** * Register a StreamWrapper for reading and writing to Google Storage *