From 6aa924c411500cb9e0b4d3c6b5eabc9b78be59ab Mon Sep 17 00:00:00 2001 From: Brice Lenfant <165644+bricel@users.noreply.github.com> Date: Thu, 26 Sep 2019 14:58:38 +0300 Subject: [PATCH] Fix type property to method the property is protected. --- plugins/notifier/abstract.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/notifier/abstract.inc b/plugins/notifier/abstract.inc index 93d25be..a60ab31 100644 --- a/plugins/notifier/abstract.inc +++ b/plugins/notifier/abstract.inc @@ -126,7 +126,7 @@ abstract class MessageNotifierBase implements MessageNotifierInterface { $wrapper->{$field_name}->set($output[$view_mode]); } else { - $format = $wrapper->type->{MESSAGE_FIELD_MESSAGE_TEXT}->get(0)->format->value(); + $format = $wrapper->type()->{MESSAGE_FIELD_MESSAGE_TEXT}->get(0)->format->value(); $wrapper->{$field_name}->set(array('value' => $output[$view_mode], 'format' => $format)); } }