fixed unit tests

This commit is contained in:
Val Bancer 2017-01-26 23:39:47 +01:00
parent 0bf49966db
commit 0c8e3f1977

View file

@ -1100,7 +1100,7 @@ class Router {
* @param CakeRequest|array $params The params array or CakeRequest object that needs to be reversed.
* @return array The URL array ready to be used for redirect or HTML link.
*/
public function reverseToArray($params) {
public static function reverseToArray($params) {
if ($params instanceof CakeRequest) {
$url = $params->query;
$params = $params->params;