]> Raphaƫl G. Git Repositories - userbundle/blobdiff - Handler/AuthenticationSuccessHandler.php
Remove mail and hash possible leak from failure_path context
[userbundle] / Handler / AuthenticationSuccessHandler.php
index 961c1b15419b334e3eb2db30c2e30b06a71e0fb3..579c11029151c8e53436e408e60d318db54f0cd9 100644 (file)
@@ -37,7 +37,7 @@ class AuthenticationSuccessHandler extends DefaultAuthenticationSuccessHandler {
        /**
         * Default options
         */
        /**
         * Default options
         */
-    protected $defaultOptions = [
+    protected array $defaultOptions = [
         'always_use_default_target_path' => false,
         'default_target_path' => '/',
         'login_path' => '/login',
         'always_use_default_target_path' => false,
         'default_target_path' => '/',
         'login_path' => '/login',
@@ -48,22 +48,22 @@ class AuthenticationSuccessHandler extends DefaultAuthenticationSuccessHandler {
        /**
         * Options
         */
        /**
         * Options
         */
-    protected $options;
+    protected array $options;
 
        /**
         * Router instance
         */
 
        /**
         * Router instance
         */
-       protected $router;
+       protected RouterInterface $router;
 
        /**
         * {@inheritdoc}
         */
        public function __construct(RouterInterface $router, array $options = []) {
 
        /**
         * {@inheritdoc}
         */
        public function __construct(RouterInterface $router, array $options = []) {
-               //Set options
-               $this->setOptions($options);
-
                //Set router
                $this->router = $router;
                //Set router
                $this->router = $router;
+
+               //Set options
+               $this->setOptions($options);
        }
 
     /**
        }
 
     /**