diff --git a/framework/yii/web/UploadedFile.php b/framework/yii/web/UploadedFile.php index a1cd735..ee3b1f0 100644 --- a/framework/yii/web/UploadedFile.php +++ b/framework/yii/web/UploadedFile.php @@ -240,7 +240,7 @@ class UploadedFile extends \yii\base\Object self::loadFilesRecursive($key . '[' . $i . ']', $name, $tempNames[$i], $types[$i], $sizes[$i], $errors[$i]); } } else { - self::$_files[$key] = new self($names, $tempNames, $types, $sizes, $errors); + self::$_files[$key] = new static($names, $tempNames, $types, $sizes, $errors); } } }