1 | <?php |
||
11 | class Listener |
||
12 | { |
||
13 | public const IPN_VERIFIED_EVENT = 'ipn.message.verified'; |
||
14 | public const IPN_INVALID_EVENT = 'ipn.message.invalid'; |
||
15 | public const IPN_VERIFICATION_FAILURE_EVENT = 'ipn.message.verification_failure'; |
||
16 | |||
17 | /** |
||
18 | * @var MessageFactory |
||
19 | */ |
||
20 | private $messageFactory; |
||
21 | |||
22 | /** |
||
23 | * @var Verifier |
||
24 | */ |
||
25 | private $verifier; |
||
26 | |||
27 | /** |
||
28 | * @var EventDispatcherInterface |
||
29 | */ |
||
30 | private $eventDispatcher; |
||
31 | |||
32 | public function __construct( |
||
41 | |||
42 | public function listen() : void |
||
63 | |||
64 | public function onVerified(callable $listener) : void |
||
68 | |||
69 | public function onInvalid(callable $listener) : void |
||
73 | |||
74 | public function onVerificationFailure(callable $listener) : void |
||
78 | } |
||
79 |
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: