mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Fixes #10372: Fixed console controller including DI arguments in help
This commit is contained in:

committed by
Alexander Makarov

parent
dcda2a2466
commit
18fc8db32f
@ -414,8 +414,13 @@ class Controller extends \yii\base\Controller
|
||||
$params = isset($tags['param']) ? (array) $tags['param'] : [];
|
||||
|
||||
$args = [];
|
||||
|
||||
/** @var \ReflectionParameter $reflection */
|
||||
foreach ($method->getParameters() as $i => $reflection) {
|
||||
$name = $reflection->getName();
|
||||
if ($reflection->getClass() !== null) {
|
||||
continue;
|
||||
}
|
||||
$tag = isset($params[$i]) ? $params[$i] : '';
|
||||
if (preg_match('/^(\S+)\s+(\$\w+\s+)?(.*)/s', $tag, $matches)) {
|
||||
$type = $matches[1];
|
||||
|
Reference in New Issue
Block a user