Skip to content

Commit bb5749d

Browse files
committed
Add ExpressionStream::stream_set_option for PHP 7.4 compatibility
1 parent 5be557d commit bb5749d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/JsPhpize/Stream/ExpressionStream.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,18 @@ public function url_stat($path, $flags)
7676
{
7777
return [0, 0, 0, 0, 0, 0, 0, mb_strlen($this->data), 0, 0, 0, 0];
7878
}
79+
80+
/**
81+
* Dummy option setter.
82+
*
83+
* @param $option
84+
* @param $arg1
85+
* @param $arg2
86+
*
87+
* @return bool
88+
*/
89+
public function stream_set_option($option, $arg1, $arg2)
90+
{
91+
return true;
92+
}
7993
}

0 commit comments

Comments
 (0)