Skip to content

Commit

Permalink
FileList::__construct() should be a void method
Browse files Browse the repository at this point in the history
... as constructor always must be.
  • Loading branch information
jrfnl committed Sep 9, 2024
1 parent 77a01e7 commit 9980595
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Scripts/FileList.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ class FileList
* @param string $directory The directory to examine.
* @param string $rootPath Path to the project root.
* @param string $filter PCRE regular expression to filter the file list with.
*
* @return void
*/
public function __construct($directory, $rootPath = '', $filter = '')
{
Expand All @@ -78,8 +80,6 @@ public function __construct($directory, $rootPath = '', $filter = '')
}

$this->fileIterator = new RegexIterator($flattened, $filter);

return $this;
}

/**
Expand Down

0 comments on commit 9980595

Please sign in to comment.