From 95335308e14b6be64341bc7dffee0c705753e01e Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 18 Jan 2025 00:03:52 +0100 Subject: [PATCH] phpstan: Ignore Container::getComponents() returning incorrect type This is a phpstan-nette bug. --- phpstan.neon | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/phpstan.neon b/phpstan.neon index 2cc7d7c..5eda96f 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -16,3 +16,11 @@ parameters: paths: - src - .docs + + ignoreErrors: + # https://github.com/phpstan/phpstan-nette/issues/141 + - + message: '#^Parameter \#1 \$array of function array_filter expects array, Iterator\ given\.$#' + identifier: argument.type + count: 3 + path: src/Multiplier.php