We are using Contao 4.7.7 which depends on Symfony, for some reason we are receiving the following fatal error out of nothing, not sure how this one came up.
On this event: fos_http_cache.pre_handle
the Kernel passes a wrong Event
How to solve this issue?
Fatal error: Uncaught TypeError: Argument 2 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an instance of Symfony\Component\EventDispatcher\Event or null, instance of FOS\HttpCache\SymfonyCache\CacheEvent given, called in /vendor/friendsofsymfony/http-cache/src/SymfonyCache/EventDispatchingHttpCache.php on line 164 and defined in /vendor/symfony/event-dispatcher/EventDispatcher.php:37
Stack trace:
/vendor/friendsofsymfony/http-cache/src/SymfonyCache/EventDispatchingHttpCache.php(164): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('fos_http_cache....', Object(FOS\HttpCache\SymfonyCache\CacheEvent))
/vendor/friendsofsymfony/http-cache/src/SymfonyCache/EventDispatchingHttpCache.php(100): Contao\ManagerBundle\HttpKernel\ContaoCache->dispatch('fos_http_cache....', Object(Symfony\Component\HttpFoundation\Request), NULL, 1)
/web/app.php(58): in vendor/symfony/event-dispatcher/EventDispatcher.php on line 37