| 1 | <?php |
||
| 18 | class MessageFactory extends MimePartFactory |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * Constructs a new Message object and returns it |
||
| 22 | * |
||
| 23 | * @param string $messageObjectId |
||
| 24 | * @param PartBuilder $partBuilder |
||
| 25 | * @return \ZBateson\MailMimeParser\Message\Part\MimePart |
||
| 26 | */ |
||
| 27 | public function newInstance($messageObjectId, PartBuilder $partBuilder) |
||
| 37 | } |
||
| 38 |
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: