From 1b4652ced74d7294bf7faac1fea8be6db4cb12b6 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Fri, 8 Nov 2024 16:06:57 +0100 Subject: [PATCH] FileList: improve doc specificity Make the iterator list type specifications more specific to comply with expectations in PHPStan 2.0. Note: in reality the type should be `\RegexIterator>`, but would yield yet another PHPStan error, so let's just leave it like this for now. --- Scripts/FileList.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/FileList.php b/Scripts/FileList.php index e725780..4ecb262 100644 --- a/Scripts/FileList.php +++ b/Scripts/FileList.php @@ -47,7 +47,7 @@ class FileList /** * Regex iterator. * - * @var \RegexIterator + * @var \RegexIterator> */ protected $fileIterator; @@ -85,7 +85,7 @@ public function __construct($directory, $rootPath = '', $filter = '') /** * Retrieve the filtered file list iterator. * - * @return \RegexIterator + * @return \RegexIterator> */ public function getIterator() {