Skip to content

Commit

Permalink
Merge pull request #26 from rifki192/add-array-format
Browse files Browse the repository at this point in the history
add support for array format in parameter
  • Loading branch information
petrabarus committed Nov 30, 2015
2 parents 5e0ac23 + 7b0e2fc commit e98858d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Worker/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit e98858d

Please sign in to comment.