Skip to content

Commit

Permalink
Fix PHP8.1 tentative return types
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
  • Loading branch information
ChristophWurst authored and mrubinsk committed Jun 18, 2022
1 parent 1a6c6f9 commit 81c1cd3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/Horde/Stream/Filter/Bin2hex.php
Expand Up @@ -22,6 +22,7 @@ class Horde_Stream_Filter_Bin2hex extends php_user_filter
/**
* @see stream_filter_register()
*/
#[ReturnTypeWillChange]
public function filter($in, $out, &$consumed, $closing)
{
while ($bucket = stream_bucket_make_writeable($in)) {
Expand Down
2 changes: 2 additions & 0 deletions lib/Horde/Stream/Filter/Crc32.php
Expand Up @@ -28,6 +28,7 @@ class Horde_Stream_Filter_Crc32 extends php_user_filter
/**
* @see stream_filter_register()
*/
#[ReturnTypeWillChange]
public function onCreate()
{
$this->params->crc32 = 0;
Expand All @@ -38,6 +39,7 @@ public function onCreate()
/**
* @see stream_filter_register()
*/
#[ReturnTypeWillChange]
public function filter($in, $out, &$consumed, $closing)
{
while ($bucket = stream_bucket_make_writeable($in)) {
Expand Down
2 changes: 2 additions & 0 deletions lib/Horde/Stream/Filter/Eol.php
Expand Up @@ -56,6 +56,7 @@ class Horde_Stream_Filter_Eol extends php_user_filter
/**
* @see stream_filter_register()
*/
#[ReturnTypeWillChange]
public function onCreate()
{
$eol = isset($this->params['eol'])
Expand All @@ -82,6 +83,7 @@ public function onCreate()
/**
* @see stream_filter_register()
*/
#[ReturnTypeWillChange]
public function filter($in, $out, &$consumed, $closing)
{
while ($bucket = stream_bucket_make_writeable($in)) {
Expand Down
1 change: 1 addition & 0 deletions lib/Horde/Stream/Filter/Htmlspecialchars.php
Expand Up @@ -27,6 +27,7 @@ class Horde_Stream_Filter_Htmlspecialchars extends php_user_filter
/**
* @see stream_filter_register()
*/
#[ReturnTypeWillChange]
public function filter($in, $out, &$consumed, $closing)
{
while ($bucket = stream_bucket_make_writeable($in)) {
Expand Down
2 changes: 2 additions & 0 deletions lib/Horde/Stream/Filter/Null.php
Expand Up @@ -41,6 +41,7 @@ class Horde_Stream_Filter_Null extends php_user_filter
/**
* @see stream_filter_register()
*/
#[ReturnTypeWillChange]
public function onCreate()
{
$this->_replace = isset($this->params->replace)
Expand All @@ -53,6 +54,7 @@ public function onCreate()
/**
* @see stream_filter_register()
*/
#[ReturnTypeWillChange]
public function filter($in, $out, &$consumed, $closing)
{
while ($bucket = stream_bucket_make_writeable($in)) {
Expand Down

0 comments on commit 81c1cd3

Please sign in to comment.