From 4722fecd64e4b7d173cbd2d2cca2c1e9214e63b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=99=E7=A0=81=E7=94=9F=E8=8A=B1?= <18523774412@qq.com> Date: Mon, 18 Mar 2024 14:12:44 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=E4=BC=98=E5=8C=96=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E7=B1=BB=E8=AE=BE=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E7=9A=84=E5=8F=82=E6=95=B0=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/library/Upload.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/common/library/Upload.php b/app/common/library/Upload.php index ed8d8ba5..4ebd167a 100644 --- a/app/common/library/Upload.php +++ b/app/common/library/Upload.php @@ -66,11 +66,11 @@ class Upload /** * 设置文件 - * @param UploadedFile $file + * @param ?UploadedFile $file * @return array 文件信息 * @throws Throwable */ - public function setFile(UploadedFile $file): array + public function setFile(?UploadedFile $file): array { if (empty($file)) { throw new Exception(__('No files were uploaded'), 10001);