diff --git a/phpstan.neon b/phpstan.neon index 6b7ce92ad..c276e0bd3 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -28,6 +28,7 @@ parameters: - '#Cannot assign new offset to array\|string.#' - '#Cannot access offset .* on mixed.#' - '#Cannot access offset .* on array\|int.#' + - '#Cannot access an offset on array\|Countable.#' - '#Parameter \#1 \$haystack of function str_starts_with expects string, int\|string given.#' - '#Parameter \#3 \$length of function substr expects int\|null, int<0, max>\|false given.#' - '#Parameter \#1 \$string of function htmlspecialchars expects string, array\|string given.#'