| 1 | <?php |
||
| 10 | class ContactService implements ContactServiceInterface |
||
| 11 | { |
||
| 12 | const TEMPLATE = 'Acelaya::emails/contact'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var Swift_Mailer |
||
| 16 | */ |
||
| 17 | protected $mailer; |
||
| 18 | /** |
||
| 19 | * @var TemplateRendererInterface |
||
| 20 | */ |
||
| 21 | protected $renderer; |
||
| 22 | /** |
||
| 23 | * @var MailOptions |
||
| 24 | */ |
||
| 25 | protected $options; |
||
| 26 | |||
| 27 | public function __construct(Swift_Mailer $mailer, TemplateRendererInterface $renderer, MailOptions $options) |
||
| 33 | |||
| 34 | 1 | /** |
|
| 35 | * Sends the email and returns the result |
||
| 36 | 1 | * |
|
| 37 | 1 | * @param array $messageData |
|
| 38 | 1 | * @return bool |
|
| 39 | 1 | */ |
|
| 40 | public function send(array $messageData): bool |
||
| 45 | |||
| 46 | /** |
||
| 47 | 1 | * @param array $messageData |
|
| 48 | * @return \Swift_Mime_MimePart |
||
| 49 | 1 | */ |
|
| 50 | 1 | private function createMessage(array $messageData): \Swift_Mime_MimePart |
|
| 58 | |||
| 59 | 1 | /** |
|
| 60 | 1 | * @param array $messageData |
|
| 61 | 1 | * @return string |
|
| 62 | 1 | */ |
|
| 63 | 1 | private function composeBody(array $messageData): string |
|
| 67 | } |
||
| 68 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: