From a1bf95f93f8b4954704f82283e09608b8201396c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Tue, 27 Feb 2024 14:16:22 +0100 Subject: [PATCH 1/1] Php 8.x constructor style --- Handler/AuthenticationSuccessHandler.php | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/Handler/AuthenticationSuccessHandler.php b/Handler/AuthenticationSuccessHandler.php index 579c110..11e8325 100644 --- a/Handler/AuthenticationSuccessHandler.php +++ b/Handler/AuthenticationSuccessHandler.php @@ -45,23 +45,10 @@ class AuthenticationSuccessHandler extends DefaultAuthenticationSuccessHandler { 'use_referer' => false, ]; - /** - * Options - */ - protected array $options; - - /** - * Router instance - */ - protected RouterInterface $router; - /** * {@inheritdoc} */ - public function __construct(RouterInterface $router, array $options = []) { - //Set router - $this->router = $router; - + public function __construct(protected RouterInterface $router, protected array $options = []) { //Set options $this->setOptions($options); } -- 2.41.1