Commit f35a7f49 authored by pfrenssen's avatar pfrenssen Committed by jhedstrom

Issue #2966213 by pfrenssen, brantwynn: MessageNotifierBase calling assert():...

Issue #2966213 by pfrenssen, brantwynn: MessageNotifierBase calling assert(): Calling assert() with a string argument is deprecated
parent 4e8400d1
......@@ -96,7 +96,8 @@ abstract class MessageNotifierBase extends PluginBase implements MessageNotifier
* {@inheritdoc}
*/
public function send() {
assert('isset($this->message)', 'No message is set for this notifier.');
$has_message = isset($this->message);
assert($has_message, 'No message is set for this notifier.');
$output = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment