Fixes #10372: Fixed console controller including complex typed arguments in help

This commit is contained in:
Sam
2017-03-15 13:47:21 +01:00
committed by Alexander Makarov
parent 8192f84850
commit 9459eaa277
4 changed files with 22 additions and 1 deletions

View File

@ -467,6 +467,9 @@ class Controller extends \yii\base\Controller
/** @var \ReflectionParameter $reflection */
foreach ($method->getParameters() as $i => $reflection) {
if ($reflection->getClass() !== null) {
continue;
}
$name = $reflection->getName();
$tag = isset($params[$i]) ? $params[$i] : '';
if (preg_match('/^(\S+)\s+(\$\w+\s+)?(.*)/s', $tag, $matches)) {