From 5ad50c76455243df3d2d2199c0e8d6fb1eaeb9bc Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Sat, 16 Nov 2024 09:44:52 +0100 Subject: [PATCH] ignore "value type specified in iterable type" in @phpstan-assert --- phpstan.neon | 3 +++ 1 file changed, 3 insertions(+) diff --git a/phpstan.neon b/phpstan.neon index 1193200496a..ec409a4670a 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -12,6 +12,9 @@ parameters: - '#Strict comparison using !== between .*non-empty-string.* and .* will always evaluate to true.#' - '#Strict comparison using !== between .*non-falsy-string.* and .* will always evaluate to true.#' - '#Call to function is_array\(\) with array will always evaluate to true.#' + # see https://github.com/phpstan/phpstan/issues/12061 + - '#PHPDoc tag @phpstan-assert for \$actual has no value type specified in iterable type.*#' + - '#PHPDoc tag @phpstan-assert for \$array has no value type specified in iterable type.*#' includes: - phar://phpstan.phar/conf/bleedingEdge.neon