1 | <?php |
||
12 | class Mail extends Mailer |
||
13 | { |
||
14 | /** |
||
15 | * Mail model instance. |
||
16 | * |
||
17 | * @var \Distilleries\MailerSaver\Contracts\MailModelContract |
||
18 | */ |
||
19 | protected $model; |
||
20 | |||
21 | /** |
||
22 | * Configuration override data. |
||
23 | * |
||
24 | * @var array |
||
25 | */ |
||
26 | protected $override; |
||
27 | |||
28 | /** |
||
29 | * Mailersaver instance constructor. |
||
30 | * |
||
31 | * @param \Distilleries\MailerSaver\Contracts\MailModelContract $model |
||
32 | * @param \Wpb\String_Blade_Compiler\Factory $views |
||
33 | * @param \Swift_Mailer $swift |
||
34 | * @param \Illuminate\Events\Dispatcher $events |
||
35 | */ |
||
36 | 12 | public function __construct(MailModelContract $model, Factory $views, Swift_Mailer $swift, Dispatcher $events = null) |
|
44 | |||
45 | /** |
||
46 | * Render the given mail view. |
||
47 | * |
||
48 | * @param string $view |
||
49 | * @param array $data |
||
50 | * @return string |
||
51 | * @throws \Throwable |
||
52 | */ |
||
53 | 12 | protected function renderView($view, $data) |
|
78 | |||
79 | /** |
||
80 | * Send contained mail instance. |
||
81 | * |
||
82 | * @param string $view |
||
83 | * @param array $data |
||
84 | * @param mixed $callback |
||
85 | * @return void |
||
86 | */ |
||
87 | 12 | public function send($view, array $data = [], $callback = null) |
|
131 | |||
132 | /** |
||
133 | * Set subject to message. |
||
134 | * |
||
135 | * @param \Illuminate\Mail\Message $message |
||
136 | * @return void |
||
137 | */ |
||
138 | 12 | public function addSubject($message) |
|
145 | |||
146 | /** |
||
147 | * Set CC addresses to message. |
||
148 | * |
||
149 | * @param \Illuminate\Mail\Message $message |
||
150 | * @return void |
||
151 | */ |
||
152 | 12 | public function addCc($message) |
|
159 | |||
160 | /** |
||
161 | * Set BCC addresses to message. |
||
162 | * |
||
163 | * @param \Illuminate\Mail\Message $message |
||
164 | * @return void |
||
165 | */ |
||
166 | 12 | public function addBcc($message) |
|
173 | |||
174 | /** |
||
175 | * Set TO addresses to message. |
||
176 | * |
||
177 | * @param \Illuminate\Mail\Message $message |
||
178 | * @return void |
||
179 | */ |
||
180 | 12 | public function overrideTo($message) |
|
187 | |||
188 | /** |
||
189 | * Return if mail configuration is supercharged. |
||
190 | * |
||
191 | * @return bool |
||
192 | */ |
||
193 | 12 | public function isOverride() |
|
197 | } |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..