Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libraries/src/Application/AdministratorApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ protected function doExecute()
*
* @since 3.2
*/
public static function getRouter($name = 'administrator', array $options = array())
public function getRouter($name = 'administrator', array $options = [])
{
return parent::getRouter($name, $options);
}
Expand Down
4 changes: 2 additions & 2 deletions libraries/src/Application/CMSApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ public function getPathway()
*
* @since 3.2
*/
public static function getRouter($name = null, array $options = array())
public function getRouter($name = null, array $options = [])
{
$app = Factory::getApplication();

Expand Down Expand Up @@ -1062,7 +1062,7 @@ protected function route()
// Get the full request URI.
$uri = clone Uri::getInstance();

$router = static::getRouter();
$router = $this->getRouter();
$result = $router->parse($uri, true);

$active = $this->getMenu()->getActive();
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/Application/CMSWebApplicationInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function getMenu($name = null, $options = array());
*
* @since 4.0.0
*/
public static function getRouter($name = null, array $options = array());
public function getRouter($name = null, array $options = []);

/**
* Gets a user state.
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/Application/SiteApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ public function getPathway($name = 'site', $options = array())
*
* @since 3.2
*/
public static function getRouter($name = 'site', array $options = array())
public function getRouter($name = 'site', array $options = [])
{
return parent::getRouter($name, $options);
}
Expand Down