From c5aa86058e986771f4ead2529c1044c2a7eaf7ed Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Wed, 23 Aug 2023 15:04:26 +0200 Subject: [PATCH] Add common ignore errors pattern to phpstan config --- phpstan.neon | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/phpstan.neon b/phpstan.neon index 4520e2d..16cac33 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -16,7 +16,11 @@ parameters: - vendor ignoreErrors: - - '#Unsafe usage of new static\(\)#' + - + messages: + - '#Unsafe usage of new static\(\)#' + - '#. but return statement is missing#' + reportUnmatched: false - '#Call to an undefined method Icinga\\Module\\Reporting\\RetryConnection::lastInsertId\(\)#'