1 | <?php |
||
20 | abstract class AbstractBinding |
||
21 | { |
||
22 | /** @var EventDispatcherInterface|null */ |
||
23 | protected $eventDispatcher; |
||
24 | |||
25 | /** |
||
26 | * @param EventDispatcherInterface|null $eventDispatcher |
||
27 | * |
||
28 | * @return AbstractBinding |
||
29 | */ |
||
30 | 11 | public function setEventDispatcher(EventDispatcherInterface $eventDispatcher = null) |
|
36 | |||
37 | /** |
||
38 | * @return null|\Symfony\Component\EventDispatcher\EventDispatcherInterface |
||
39 | */ |
||
40 | 4 | public function getEventDispatcher() |
|
44 | |||
45 | /** |
||
46 | * @param string $messageString |
||
47 | */ |
||
48 | 3 | protected function dispatchReceive($messageString) |
|
55 | |||
56 | /** |
||
57 | * @param string $messageString |
||
58 | */ |
||
59 | 6 | protected function dispatchSend($messageString) |
|
66 | |||
67 | /** |
||
68 | * @param MessageContext $context |
||
69 | * @param null|string $destination |
||
70 | * |
||
71 | * @return \Symfony\Component\HttpFoundation\Response |
||
72 | */ |
||
73 | abstract public function send(MessageContext $context, $destination = null); |
||
74 | |||
75 | /** |
||
76 | * @param Request $request |
||
77 | * @param MessageContext $context |
||
78 | */ |
||
79 | abstract public function receive(Request $request, MessageContext $context); |
||
80 | } |
||
81 |
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: