From 7b0e2fc16befec10da14c280fe409bc75d17ce33 Mon Sep 17 00:00:00 2001 From: Rifki Date: Mon, 30 Nov 2015 09:57:29 +0700 Subject: [PATCH] add support for array format in parameter --- src/Worker/Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Worker/Controller.php b/src/Worker/Controller.php index 161862a..4f22b50 100644 --- a/src/Worker/Controller.php +++ b/src/Worker/Controller.php @@ -64,7 +64,7 @@ public function bindActionParams($action, $params) { /* @var $param \ReflectionParameter */ $name = $param->getName(); if (isset($params[$name])) { - if ($param->isArray()) { + if ($param->isArray() && !is_array($params[$name])) { $args[] = preg_split('/\s*,\s*/', $params[$name]); } else { $args[] = $params[$name];