diff --git a/src/Iterator/GlobIterator.php b/src/Iterator/GlobIterator.php index 62c8c0a..8fb4691 100644 --- a/src/Iterator/GlobIterator.php +++ b/src/Iterator/GlobIterator.php @@ -34,11 +34,11 @@ class GlobIterator extends IteratorIterator * @param string $glob The glob pattern. * @param int $flags A bitwise combination of the flag constants in * {@link Glob}. - * @param bool $skip_errors Add the RecursiveIteratorIterator::CATCH_GET_CHILD + * @param bool $skipErrors Add the RecursiveIteratorIterator::CATCH_GET_CHILD * to internal RecursiveIteratorIterator and prevent throwing * Exception on errors like access denied. */ - public function __construct($glob, $flags = 0, $skip_errors = false) + public function __construct(string $glob, int $flags = 0, bool $skipErrors = false) { $basePath = Glob::getBasePath($glob, $flags); @@ -79,7 +79,7 @@ public function __construct($glob, $flags = 0, $skip_errors = false) | RecursiveDirectoryIterator::SKIP_DOTS ), RecursiveIteratorIterator::SELF_FIRST - | ($skip_errors ? RecursiveIteratorIterator::SELF_FIRST : 0) + | ($skipErrors ? RecursiveIteratorIterator::SELF_FIRST : 0) ), GlobFilterIterator::FILTER_VALUE, $flags