Commit e0827096 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Corrections de signatures de méthodes incompatibles avec la classe mère, ce...

Corrections de signatures de méthodes incompatibles avec la classe mère, ce qui déclenchait un E_WARNING en PHP 7.2
parent 52edd5c6
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -48,14 +48,9 @@ abstract class AuthenticatedUserSavedAbstractListener implements ListenerAggrega
    }

    /**
     * Attach one or more listeners
     *
     * Implementors may add an optional $priority argument; the EventManager
     * implementation will pass this to the aggregate.
     *
     * @param EventManagerInterface $events
     * {@inheritdoc}
     */
    public function attach(EventManagerInterface $events)
    public function attach(EventManagerInterface $events, $priority = 1)
    {
        $sharedEvents = $events->getSharedManager();

+2 −9
Original line number Diff line number Diff line
@@ -32,16 +32,9 @@ abstract class UserRoleSelectedEventAbstractListener implements ListenerAggregat
    abstract public function postSelection(UserRoleSelectedEvent $e);

    /**
     * Attach one or more listeners
     *
     * Implementors may add an optional $priority argument; the EventManager
     * implementation will pass this to the aggregate.
     *
     * @param EventManagerInterface $events
     *
     * @return void
     * {@inheritdoc}
     */
    public function attach(EventManagerInterface $events)
    public function attach(EventManagerInterface $events, $priority = 1)
    {
        $sharedEvents      = $events->getSharedManager();
        $this->listeners[] = $sharedEvents->attach(