From ff41f2cdb273a85af8f2ae41cc90b21db8a97ff9 Mon Sep 17 00:00:00 2001 From: Sam Light Date: Wed, 10 Jun 2026 19:00:32 +0100 Subject: stricter php stan with ignores for pest testing --- phpstan.neon | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'phpstan.neon') diff --git a/phpstan.neon b/phpstan.neon index 4712629..0f3527c 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,5 +1,5 @@ parameters: - level: 9 + level: 10 paths: - src - tests @@ -14,3 +14,19 @@ parameters: path: tests identifier: argument.type reportUnmatched: false + - + message: '#Cannot call method ([a-zA-Z0-9_])+\(\) on mixed.#' + path: tests + identifier: method.nonObject + reportUnmatched: false + - + message: '#Cannot access property \$([a-zA-Z0-9_])+ on mixed.#' + path: tests + identifier: property.nonObject + reportUnmatched: false + - + path: tests + identifiers: + - property.dynamicName + - method.dynamicName + reportUnmatched: false -- cgit v1.2.3