Commit e0827096 authored by Bertrand Gauthier's avatar Bertrand Gauthier

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
......@@ -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();
......
......@@ -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(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment