2.4 throw an exception on dev environment when using the response handler. The third argument is now a TraceableEventDispatcher
ContextErrorException: Catchable Fatal Error: Argument 3 passed to
Lexik\Bundle\PayboxBundle\Paybox\System\Base\Response::__construct() must be an instance of
Symfony\Component\EventDispatcher\EventDispatcher, instance of
Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher given, called in
2.4 throw an exception on dev environment when using the response handler. The third argument is now a TraceableEventDispatcher
We must use the EventDispatcherInterface instead of EventDispatcher as type in the constructor of the Response (https://github.com/fabienpomerol/LexikPayboxBundle/blob/master/Paybox/System/Base/Response.php#L52)