mirror of
https://github.com/yiisoft/yii2.git
synced 2025-10-30 10:08:08 +08:00
Merge pull request #20170 from terabytesoftw/fix-yii2-coding-standard
Fix ci lint.
This commit is contained in:
@ -129,9 +129,8 @@ class Controller extends \yii\base\Controller
|
||||
foreach ($method->getParameters() as $param) {
|
||||
$name = $param->getName();
|
||||
if (array_key_exists($name, $params)) {
|
||||
$isValid = true;
|
||||
$isValid = true;
|
||||
$isArray = ($type = $param->getType()) instanceof \ReflectionNamedType && $type->getName() === 'array';
|
||||
|
||||
if ($isArray) {
|
||||
$params[$name] = (array)$params[$name];
|
||||
} elseif (is_array($params[$name])) {
|
||||
|
||||
Reference in New Issue
Block a user