From c57e362b868fd60e299d268567e330433a7d0291 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Wed, 21 Jun 2023 15:44:36 +0200 Subject: [PATCH] Ignore phpstan's `Access to undefined property` error for models - These properties are db columns --- phpstan.neon | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpstan.neon b/phpstan.neon index 08d8f61bc..9f75f03ad 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -7,4 +7,6 @@ parameters: - vendor - library/Icingadb/ProvidedHook ignoreErrors: - - '#Unsafe usage of new static\(\)#' \ No newline at end of file + - '#Unsafe usage of new static\(\)#' + universalObjectCratesClasses: + - Icinga\Module\Icingadb\Model \ No newline at end of file