update patch 1
This commit is contained in:
@@ -23,16 +23,14 @@ class FileTypeFilterIterator extends \FilterIterator
|
||||
public const ONLY_FILES = 1;
|
||||
public const ONLY_DIRECTORIES = 2;
|
||||
|
||||
private int $mode;
|
||||
|
||||
/**
|
||||
* @param \Iterator<string, \SplFileInfo> $iterator The Iterator to filter
|
||||
* @param int $mode The mode (self::ONLY_FILES or self::ONLY_DIRECTORIES)
|
||||
*/
|
||||
public function __construct(\Iterator $iterator, int $mode)
|
||||
{
|
||||
$this->mode = $mode;
|
||||
|
||||
public function __construct(
|
||||
\Iterator $iterator,
|
||||
private int $mode,
|
||||
) {
|
||||
parent::__construct($iterator);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user