mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-01 20:19:42 +08:00
Fix #20485: Fix error Cannot unset string offsets in yii\di\Instance:ensure(['__class' => ...], 'some\class\name'), Integrate PHPStan for static analysis
This commit is contained in:
@ -253,7 +253,7 @@ class UploadedFile extends BaseObject
|
||||
{
|
||||
if (self::$_files === null) {
|
||||
self::$_files = [];
|
||||
if (isset($_FILES) && is_array($_FILES)) {
|
||||
if (is_array($_FILES)) {
|
||||
foreach ($_FILES as $key => $info) {
|
||||
self::loadFilesRecursive(
|
||||
$key,
|
||||
|
||||
Reference in New Issue
Block a user