Skip to content

Commit 0485057

Browse files
committed
fix(util.meta): param must be array
1 parent 3f3fc5e commit 0485057

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Util/Metadata.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ protected function getMethodParameters(\ReflectionMethod $method, array $docPara
106106
continue;
107107
}
108108

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

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

116116
return \compact('params', 'return');

0 commit comments

Comments
 (0)