From 47c2aca934ce1b38a7cf8571edf41c335f1a87da Mon Sep 17 00:00:00 2001 From: finnef <20065284+finnef@users.noreply.github.com> Date: Wed, 17 Feb 2021 10:34:56 +0100 Subject: [PATCH] Update WidgetUser.php Allow NULL return types on WidgetUser, so you can query if any config if set or not. --- Entity/WidgetUser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Entity/WidgetUser.php b/Entity/WidgetUser.php index bdbcfc3..dd9b80a 100644 --- a/Entity/WidgetUser.php +++ b/Entity/WidgetUser.php @@ -44,7 +44,7 @@ class WidgetUser /** * Get id. */ - public function getId(): int + public function getId(): ?int { return $this->id; } @@ -66,7 +66,7 @@ public function setConfig($config): self /** * Get config. */ - public function getConfig(): array + public function getConfig(): ?array { return $this->config; }