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