1 | <?php |
||
19 | class SendJob extends AbstractJob |
||
20 | { |
||
21 | /** |
||
22 | * @var TransportInterface |
||
23 | */ |
||
24 | private $mailer; |
||
25 | |||
26 | /** |
||
27 | * @var LoggerInterface |
||
28 | */ |
||
29 | private $logger; |
||
30 | |||
31 | /** |
||
32 | * SendJob constructor. |
||
33 | * |
||
34 | * @param TransportInterface $mailer |
||
35 | * @param LoggerInterface $logger |
||
36 | */ |
||
37 | public function __construct(TransportInterface $mailer, LoggerInterface $logger) |
||
42 | |||
43 | /** @inheritdoc */ |
||
44 | public function execute() |
||
81 | } |
||
82 |
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: