From 87a62456a7f9a95aeeb7d3ea55c6ef72992da245 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Tue, 10 Sep 2024 01:15:53 +0200 Subject: [PATCH] FileList::__construct() should be a void method ... as constructor always must be. --- Scripts/FileList.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/FileList.php b/Scripts/FileList.php index 1636c20..e725780 100644 --- a/Scripts/FileList.php +++ b/Scripts/FileList.php @@ -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 = '') { @@ -78,8 +80,6 @@ public function __construct($directory, $rootPath = '', $filter = '') } $this->fileIterator = new RegexIterator($flattened, $filter); - - return $this; } /**