From 2b430f5e88ecb92b92be68b67195f2e2a04a996c Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Wed, 23 Aug 2023 14:52: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 a0c1029..10b732a 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -8,7 +8,11 @@ parameters: - vendor ignoreErrors: - - '#Unsafe usage of new static\(\)#' + - + messages: + - '#Unsafe usage of new static\(\)#' + - '#. but return statement is missing#' + reportUnmatched: false - '#Method ipl\\Scheduler\\.*::getNextDue\(\) .* but returns DateTimeInterface\|null#'