Skip to content

Commit

Permalink
Add types and changed argument name
Browse files Browse the repository at this point in the history
  • Loading branch information
zobo authored May 17, 2022
1 parent f6a5362 commit fd16e84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Iterator/GlobIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fd16e84

Please sign in to comment.