From 590639f5f3e1fe883f28c41e1f175c2826b4b5f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Klabbers?= Date: Tue, 2 Aug 2022 13:28:03 +0200 Subject: [PATCH] fix: remove deprecation warning for decoding null values --- framework/core/src/Notification/Notification.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/core/src/Notification/Notification.php b/framework/core/src/Notification/Notification.php index 4d81e5dbe..b44446d0d 100644 --- a/framework/core/src/Notification/Notification.php +++ b/framework/core/src/Notification/Notification.php @@ -81,7 +81,9 @@ class Notification extends AbstractModel */ public function getDataAttribute($value) { - return json_decode($value, true); + return $value !== null + ? json_decode($value, true) + : null; } /**