From c9356e36cedb9f8c56bddde3501e8435fa2403ff Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sun, 10 Aug 2025 01:42:37 +0200 Subject: [PATCH] PHPStan: ignore a particular error ... as it looks to be unsolvable. This has been reported upstream via phpstan/phpstan 13325 --- phpstan.neon.dist | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 0e7765e..b7407cf 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -9,3 +9,15 @@ parameters: bootstrapFiles: - phpunit-bootstrap.php treatPhpDocTypesAsCertain: false + + ignoreErrors: + # yamllint disable rule:line-length + + # Level 3 + # Bug upstream. See: https://github.com/phpstan/phpstan/issues/13325 + - + message: '`^Property PHPCSDevTools\\Scripts\\FileList::\$fileIterator \(RegexIterator<[^)]+>>\) does not accept RegexIterator<[^>]+>>\.$`' + path: Scripts/FileList.php + count: 1 + + # yamllint enable rule:line-length