Commit 513a4b7b 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 95562281
Loading
Loading
Loading
Loading
+1 −1
Changes for src/BjyAuthorize/Guard/Controller.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ class Controller extends AbstractGuard
    /**
     * {@inheritDoc}
     */
    public function attach(EventManagerInterface $events)
    public function attach(EventManagerInterface $events, $priority = 1)
    {
        $this->listeners[] = $events->attach(MvcEvent::EVENT_ROUTE, array($this, 'onDispatch'), -1000);
    }
+1 −1
Changes for src/BjyAuthorize/Guard/Route.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ class Route extends AbstractGuard
    /**
     * {@inheritDoc}
     */
    public function attach(EventManagerInterface $events)
    public function attach(EventManagerInterface $events, $priority = 1)
    {
        $this->listeners[] = $events->attach(MvcEvent::EVENT_ROUTE, array($this, 'onRoute'), -1000);
    }
+1 −1
Changes for src/BjyAuthorize/View/RedirectionStrategy.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ class RedirectionStrategy implements ListenerAggregateInterface
    /**
     * {@inheritDoc}
     */
    public function attach(EventManagerInterface $events)
    public function attach(EventManagerInterface $events, $priority = 1)
    {
        $this->listeners[] = $events->attach(MvcEvent::EVENT_DISPATCH_ERROR, array($this, 'onDispatchError'), -5000);
    }
+1 −1
Changes for src/BjyAuthorize/View/UnauthorizedStrategy.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ class UnauthorizedStrategy implements ListenerAggregateInterface
    /**
     * {@inheritDoc}
     */
    public function attach(EventManagerInterface $events)
    public function attach(EventManagerInterface $events, $priority = 1)
    {
        $this->listeners[] = $events->attach(MvcEvent::EVENT_DISPATCH_ERROR, array($this, 'onDispatchError'), -5000);
    }