mirror of
https://github.com/yiisoft/yii2.git
synced 2025-10-30 01:56:35 +08:00
array union in controllers
! fix issue when handling parameter with string type, add according test
This commit is contained in:
@ -217,6 +217,9 @@ class Controller extends \yii\base\Controller
|
||||
return ['', true];
|
||||
}
|
||||
|
||||
if ($typeName === 'string') {
|
||||
return [$param, true];
|
||||
}
|
||||
$filterResult = $this->filterParamByType($param, $typeName);
|
||||
return [$filterResult, $filterResult !== null];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user