Skip to content

Commit

Permalink
fix(util.meta): param must be array
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Sep 20, 2018
1 parent 3f3fc5e commit 0485057
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Util/Metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ protected function getMethodParameters(\ReflectionMethod $method, array $docPara
continue;
}

$params[] = $this->getRealType($param) . " \$$name";
$params[] = [$this->getRealType($param) . " \$$name", $docParams[$name][1] ?? ''];
}

if ($returnType = $method->getReturnType()) {
$return[0] = $this->getRealType($returnType);
$return = [$this->getRealType($returnType), $return[1] ?? ''];
}

return \compact('params', 'return');
Expand Down

0 comments on commit 0485057

Please sign in to comment.