FriendsOfSymfony/FOSUserBundle

User Deprecated: Calling the "Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()" method with the event name as first argument is deprecated since Symfony 4.3, pass it second and provide the event object first instead.

Alfro opened this issue · 1 comments

Alfro commented

Symfony FOSUserBundle versions: 2.2 (dev-master)

Description of the problem including expected versus actual behavior:
The arguments for the EventDispatcherInterface::dispatch() have changed order. The previous order is deprecated. (See https://symfony.com/blog/new-in-symfony-4-3-simpler-event-dispatching)

Steps to reproduce:

  1. Install Symfony 4
  2. Check for deprecations (for instance creating a new user: php bin/console fos:user:create -vv

Expected result:
No deprecated messages appear.

Result:
User Deprecated: Calling the "Symfony\Component\EventDispatcher\ " method with the event name as first argument is deprecated since Symfony 4.3, pass it second and provide the event object first instead.

Alfro commented

Related to #2971, but different changes I believe