if model scope method parameters have typehints, add them to the docblock

This commit is contained in:
ockle
2016-10-12 21:53:42 +01:00
committed by GitHub
parent 22612733a2
commit 13e65d3885
+2 -1
View File
@@ -622,7 +622,8 @@ class ModelsCommand extends Command
$paramsWithDefault = array();
/** @var \ReflectionParameter $param */
foreach ($method->getParameters() as $param) {
$paramStr = '$' . $param->getName();
$paramClass = $param->getClass();
$paramStr = (!is_null($paramClass) ? '\\' . $paramClass->getName() . ' ' : '') . '$' . $param->getName();
$params[] = $paramStr;
if ($param->isOptional() && $param->isDefaultValueAvailable()) {
$default = $param->getDefaultValue();