diff --git a/framework/core/src/Notification/Notification.php b/framework/core/src/Notification/Notification.php index eab6ad5db..33e3f98a7 100644 --- a/framework/core/src/Notification/Notification.php +++ b/framework/core/src/Notification/Notification.php @@ -102,7 +102,7 @@ class Notification extends AbstractModel */ public function getSubjectModelAttribute() { - return array_get(static::$subjectModels, $this->type); + return $this->type ? array_get(static::$subjectModels, $this->type) : null; } /**