@@ -56,6 +56,7 @@ public static function create(
5656 * @param array $file
5757 * @return UploadedFileInterface
5858 * @throws InvalidArgumentException
59+ * @psalm-suppress MixedArgument
5960 */
6061 public static function createFromArray (array $ file ): UploadedFileInterface
6162 {
@@ -87,8 +88,9 @@ public static function createFromArray(array $file): UploadedFileInterface
8788 * @see https://www.php.net/manual/reserved.variables.files.php
8889 *
8990 * @param array $files
90- * @return UploadedFileInterface[]|array[][]
91+ * @return UploadedFileInterface[]|array[]
9192 * @throws InvalidArgumentException
93+ * @psalm-suppress MixedAssignment
9294 */
9395 public static function createFromGlobals (array $ files = []): array
9496 {
@@ -130,6 +132,8 @@ public static function createFromGlobals(array $files = []): array
130132 * @param array $files
131133 * @return UploadedFileInterface[]
132134 * @throws InvalidArgumentException
135+ * @psalm-suppress MixedArgument
136+ * @psalm-suppress MixedArgumentTypeCoercion
133137 */
134138 private static function createMultipleUploadedFiles (array $ files ): array
135139 {
@@ -163,7 +167,10 @@ private static function createMultipleUploadedFiles(array $files): array
163167 * @param int[]|array[] $errors
164168 * @param string[]|array[]|null $names
165169 * @param string[]|array[]|null $types
166- * @return UploadedFileInterface[]|array[]
170+ * @return UploadedFileInterface[]
171+ * @psalm-suppress InvalidReturnType
172+ * @psalm-suppress InvalidReturnStatement
173+ * @psalm-suppress MixedArgumentTypeCoercion
167174 */
168175 private static function buildTree (array $ tmpNames , array $ sizes , array $ errors , ?array $ names , ?array $ types ): array
169176 {
0 commit comments