This commit is contained in:
2021-07-28 14:10:24 +08:00
parent 312c17bbe2
commit aaada7e5ab
+3 -3
View File
@@ -508,12 +508,12 @@ if (!function_exists('Input')) {
if (!function_exists('storage')) { if (!function_exists('storage')) {
/** /**
* @param string $fileName * @param string|null $fileName
* @param string $path * @param string|null $path
* @return string * @return string
* @throws Exception * @throws Exception
*/ */
function storage(string $fileName = '', string $path = ''): string function storage(?string $fileName = '', ?string $path = ''): string
{ {
$basePath = rtrim(Snowflake::getStoragePath(), '/'); $basePath = rtrim(Snowflake::getStoragePath(), '/');