From f56b4aaf0fd9b07b2f61739ec8df53b9ccb28a73 Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Wed, 23 Aug 2023 15:18:05 +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 450321e..78a9dcc 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -16,7 +16,11 @@ parameters: - vendor ignoreErrors: - - '#. but return statement is missing#' + - + messages: + - '#Unsafe usage of new static\(\)#' + - '#. but return statement is missing#' + reportUnmatched: false universalObjectCratesClasses: # to ignore magic property errors - ipl\Orm\Model