| 1 | <?php |
||
| 14 | final class ImapTransport implements TransportInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var Client |
||
| 18 | */ |
||
| 19 | private $client; |
||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $mailbox; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * SmtpTransport constructor. |
||
| 27 | * @param Client $client |
||
| 28 | * @param string $inbox |
||
| 29 | */ |
||
| 30 | public function __construct( |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param MessageInterface $message |
||
| 40 | * @return void |
||
| 41 | */ |
||
| 42 | public function send(MessageInterface $message): void |
||
| 57 | } |
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: