/**
* Default options
*/
- protected $defaultOptions = [
+ protected array $defaultOptions = [
'always_use_default_target_path' => false,
'default_target_path' => '/',
'login_path' => '/login',
/**
* 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);
}
/**