From 670a96bf884f2a8679619a8a5766026d638f7a6b Mon Sep 17 00:00:00 2001 From: Brett McBride Date: Fri, 3 May 2024 09:28:32 +1000 Subject: [PATCH] phpstan ignore missing attribute --- phpstan.neon.dist | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index c0d765e..bafebcc 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -23,3 +23,9 @@ parameters: - message: '#Call to an undefined static method \S+#' path: tests/Support/RunkitTest.php + + # PHPUnit 10+ attributes not available in earlier versions + - + message: '#Attribute class PHPUnit\\Framework\\Attributes\\After does not exist\.#' + paths: + - src/EnvironmentVariables.php