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:
Maksim Spirkov
2025-08-27 00:01:33 +05:00
committed by GitHub
parent 22889d314a
commit 28b6ca7002
23 changed files with 327 additions and 118 deletions

View File

@ -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,