mirror of
https://github.com/yiisoft/yii2.git
synced 2025-10-29 09:28:37 +08:00
Fix #20447: Fix behavior for yii\web\Controller::bindActionParams around mixed type
This commit is contained in:
committed by
GitHub
parent
5468bca7bc
commit
5aabdd3a21
@ -208,6 +208,10 @@ class Controller extends \yii\base\Controller
|
||||
if ($isArray) {
|
||||
return [(array)$param, true];
|
||||
}
|
||||
$isMixed = $type->getName() === 'mixed';
|
||||
if ($isMixed) {
|
||||
return [$param, true];
|
||||
}
|
||||
|
||||
if (is_array($param)) {
|
||||
return [$param, false];
|
||||
|
||||
Reference in New Issue
Block a user