Skip to content

Commit

Permalink
fix(storage): Added stream_set_option in StreamWrapper (#5067)
Browse files Browse the repository at this point in the history
  • Loading branch information
saranshdhingra authored Jan 27, 2022
1 parent 1cfac42 commit e13eac3
Showing 1 changed file with 10 additions and 0 deletions.
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

0 comments on commit e13eac3

Please sign in to comment.