Skip to content

Commit 1b83097

Browse files
Use CPP where possible
1 parent f076e3c commit 1b83097

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Iterator/FileTypeFilterIterator.php

+4-6
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,14 @@ class FileTypeFilterIterator extends \FilterIterator
2323
public const ONLY_FILES = 1;
2424
public const ONLY_DIRECTORIES = 2;
2525

26-
private int $mode;
27-
2826
/**
2927
* @param \Iterator<string, \SplFileInfo> $iterator The Iterator to filter
3028
* @param int $mode The mode (self::ONLY_FILES or self::ONLY_DIRECTORIES)
3129
*/
32-
public function __construct(\Iterator $iterator, int $mode)
33-
{
34-
$this->mode = $mode;
35-
30+
public function __construct(
31+
\Iterator $iterator,
32+
private int $mode,
33+
) {
3634
parent::__construct($iterator);
3735
}
3836

0 commit comments

Comments
 (0)