Skip to content

Commit cf1a5bd

Browse files
authored
Merge pull request #155 from PHPCSStandards/feature/filelist-constructor-should-not-return
FileList::__construct() should be a void method
2 parents fc4f321 + 87a6245 commit cf1a5bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Scripts/FileList.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ class FileList
5757
* @param string $directory The directory to examine.
5858
* @param string $rootPath Path to the project root.
5959
* @param string $filter PCRE regular expression to filter the file list with.
60+
*
61+
* @return void
6062
*/
6163
public function __construct($directory, $rootPath = '', $filter = '')
6264
{
@@ -78,8 +80,6 @@ public function __construct($directory, $rootPath = '', $filter = '')
7880
}
7981

8082
$this->fileIterator = new RegexIterator($flattened, $filter);
81-
82-
return $this;
8383
}
8484

8585
/**

0 commit comments

Comments
 (0)