From 0c8e3f19773591ab351e9ccb0482b32927260f52 Mon Sep 17 00:00:00 2001 From: Val Bancer Date: Thu, 26 Jan 2017 23:39:47 +0100 Subject: [PATCH] fixed unit tests --- lib/Cake/Routing/Router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Routing/Router.php b/lib/Cake/Routing/Router.php index 7c93e616b..a05717f14 100644 --- a/lib/Cake/Routing/Router.php +++ b/lib/Cake/Routing/Router.php @@ -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;