Skip to content

Commit 13e65d3

Browse files
authored
if model scope method parameters have typehints, add them to the docblock
1 parent 2261273 commit 13e65d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Console/ModelsCommand.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,8 @@ public function getParameters($method)
622622
$paramsWithDefault = array();
623623
/** @var \ReflectionParameter $param */
624624
foreach ($method->getParameters() as $param) {
625-
$paramStr = '$' . $param->getName();
625+
$paramClass = $param->getClass();
626+
$paramStr = (!is_null($paramClass) ? '\\' . $paramClass->getName() . ' ' : '') . '$' . $param->getName();
626627
$params[] = $paramStr;
627628
if ($param->isOptional() && $param->isDefaultValueAvailable()) {
628629
$default = $param->getDefaultValue();

0 commit comments

Comments
 (0)