Skip to content

Commit

Permalink
Add Stream\Template::stream_set_option for PHP 7.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Sep 7, 2019
1 parent 791928a commit 5b27d5f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Phug/Renderer/Adapter/Stream/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,19 @@ public function url_stat($path, $flags)
{
return [0, 0, 0, 0, 0, 0, 0, strlen($this->data), 0, 0, 0, 0];
}

/**
* Dummy option setter.
*
* @param $option
* @param $arg1
* @param $arg2
*
* @return bool
*/
public function stream_set_option($option, $arg1, $arg2)
{
return true;
}
}
// @codingStandardsIgnoreEnd

0 comments on commit 5b27d5f

Please sign in to comment.