You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
I use Symfony/messenger component with DoctrineTransport.
It works great in the dev environment, but I'm getting this error in the prod environment when I want to dispatch a message.
Warning: Cannot declare class Symfony\Component\Messenger\Transport\Doctrine\DoctrineTransportFactory, because the name is already in use
I tried to trace it, and it seems it's because of preload functionality in php7.4, and somehow after cache generation, the DoctrineTransportFactory class was included twice.