From 8df6fdabb21d3cf69de5f708d51960970b16da6e Mon Sep 17 00:00:00 2001 From: aspirantzhang Date: Sat, 2 Jul 2022 10:45:51 +0800 Subject: [PATCH] docs: improve return type of header method --- src/think/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/think/Request.php b/src/think/Request.php index 55fedac91a..1ac3ea730c 100644 --- a/src/think/Request.php +++ b/src/think/Request.php @@ -1237,7 +1237,7 @@ protected function throwUploadFileError($error) * @access public * @param string $name header名称 * @param string $default 默认值 - * @return string|array + * @return string|array|null */ public function header(string $name = '', string $default = null) {