Update Router.php

This commit is contained in:
Hannes
2022-02-02 15:20:23 +01:00
committed by GitHub
parent a1d5f38af7
commit 01bad94af0

View File

@@ -38,9 +38,9 @@ class Router
/**
* Defines all data from current processing route.
* @var array
* @var ILoadableRoute
*/
protected $currentProcessingRoute = [];
protected $currentProcessingRoute;
/**
* All added routes
@@ -438,9 +438,6 @@ class Router
}
}
}
/* Remove the current processing route after handle all possible routes */
$this->currentProcessingRoute = [];
} catch (Exception $e) {
$this->handleException($e);
@@ -943,9 +940,9 @@ class Router
/**
* Get the current processing route details.
*
* @return array
* @return ILoadableRoute
*/
public function getCurrentProcessingRoute(): array
public function getCurrentProcessingRoute(): ILoadableRoute
{
return $this->currentProcessingRoute;
}