mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-30 22:48:19 +08:00
static instead of self for creating instances
in UploadedFile::loadFilesRecursive fixes #542
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user