1 | <?php |
||
23 | class ClientListener implements SubscriberInterface |
||
24 | { |
||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | public static function getSubscribedEvents() |
||
29 | { |
||
30 | return [ |
||
31 | Events::CLIENT_ACTION => 'onClientAction', |
||
32 | ]; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @param FilterActionHandlerEvent $event |
||
37 | */ |
||
38 | public function onClientAction(FilterActionHandlerEvent $event) |
||
47 | |||
48 | /** |
||
49 | * Creates the handler for the received message. |
||
50 | * |
||
51 | * @param Client $client |
||
52 | * @param SpikeInterface $message |
||
53 | * @param ConnectionInterface $connection |
||
54 | * |
||
55 | * @return Handler\ActionHandlerInterface |
||
56 | * @codeCoverageIgnore |
||
57 | */ |
||
58 | protected function createMessageHandler(Client $client, SpikeInterface $message, ConnectionInterface $connection) |
||
78 | } |
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: