Restored some PHP 7.4 support

This commit is contained in:
2022-10-31 12:51:24 +01:00
parent fd2767b642
commit 4b9e6f4c29
3 changed files with 17 additions and 3 deletions

View File

@ -10,7 +10,11 @@ class FilteringReaderIterator implements Iterator
private $condition;
public function __construct(Iterator $reader, array|callable $condition)
/**
*
* @note Removed support for callable in cond (php7.4 compat)
*/
public function __construct(Iterator $reader, array $condition)
{
$this->reader = $reader;
$this->condition = $condition;