mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
fixed unit tests
This commit is contained in:
parent
0bf49966db
commit
0c8e3f1977
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue