Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(storage): Added stream_set_option in StreamWrapper #5067

Merged
merged 6 commits into from
Jan 27, 2022
10 changes: 10 additions & 0 deletions Storage/src/StreamWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down