Fix #20447: Fix behavior for yii\web\Controller::bindActionParams around mixed type

This commit is contained in:
Christina Reichel
2025-08-18 17:06:37 +02:00
committed by GitHub
parent 5468bca7bc
commit 5aabdd3a21
4 changed files with 20 additions and 0 deletions

View File

@ -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];