From aaada7e5ab09611c8c2f301c565017d4a73741cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 28 Jul 2021 14:10:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- function.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/function.php b/function.php index 47405328..169d3986 100644 --- a/function.php +++ b/function.php @@ -508,12 +508,12 @@ if (!function_exists('Input')) { if (!function_exists('storage')) { /** - * @param string $fileName - * @param string $path + * @param string|null $fileName + * @param string|null $path * @return string * @throws Exception */ - function storage(string $fileName = '', string $path = ''): string + function storage(?string $fileName = '', ?string $path = ''): string { $basePath = rtrim(Snowflake::getStoragePath(), '/');