From 90b87c712f05f5c063b7cf55e1f78af93b83432b Mon Sep 17 00:00:00 2001 From: Pok4 Date: Fri, 25 Feb 2022 00:34:37 +0100 Subject: [PATCH] Update route.php to support php 8.1 I update this to make the custom parameters work on php 8.1 --- src/Route.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Route.php b/src/Route.php index cd8097e..884e377 100755 --- a/src/Route.php +++ b/src/Route.php @@ -181,7 +181,7 @@ public function dispatch() return ; } - call_user_func_array(array($instance, $action[1]), $this->parameters); + call_user_func_array(array($instance, $action[1]), array_values($this->parameters)); } public function getAction()