Skip to content
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

Commit 95ea6bf

Browse files
committed
Make NullMessageForView respond with a string for embed methods
1 parent 76f69ea commit 95ea6bf

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/NullMessageForView.php

+2-7
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,10 @@
66

77
class NullMessageForView
88
{
9-
protected $validMethods = [
10-
'embed',
11-
'embedData',
12-
];
13-
149
public function __call($method, $params)
1510
{
16-
if (in_array($method, $this->validMethods)) {
17-
return $this;
11+
if (in_array($method, ['embed', 'embedData'])) {
12+
return '';
1813
}
1914

2015
throw new Exception("MailThief message unable to respond to method call: [${$method}]");

0 commit comments

Comments
 (0)