Skip to content

Commit

Permalink
Merge pull request #155 from PHPCSStandards/feature/filelist-construc…
Browse files Browse the repository at this point in the history
…tor-should-not-return

FileList::__construct() should be a void method
  • Loading branch information
jrfnl authored Sep 9, 2024
2 parents fc4f321 + 87a6245 commit cf1a5bd
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 cf1a5bd

Please sign in to comment.