@@ -52,7 +52,7 @@ |
||
| 52 | 52 | /** |
| 53 | 53 | * Set a given configuration value. |
| 54 | 54 | * |
| 55 | - * @param array|string $key |
|
| 55 | + * @param string $key |
|
| 56 | 56 | * @param mixed $value |
| 57 | 57 | * @return void |
| 58 | 58 | */ |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | * @param array $files |
| 171 | 171 | * @param array $server |
| 172 | 172 | * @param string $content |
| 173 | - * @return \think\Request |
|
| 173 | + * @return Request |
|
| 174 | 174 | */ |
| 175 | 175 | public function create($uri, $method = 'GET', $params = [], $cookie = [], $files = [], $server = [], $content = null) |
| 176 | 176 | { |
@@ -612,7 +612,7 @@ discard block |
||
| 612 | 612 | /** |
| 613 | 613 | * 设置获取获取路由参数 |
| 614 | 614 | * @access public |
| 615 | - * @param string|array $name 变量名 |
|
| 615 | + * @param boolean $name 变量名 |
|
| 616 | 616 | * @param mixed $default 默认值 |
| 617 | 617 | * @param string|array $filter 过滤方法 |
| 618 | 618 | * @return mixed |
@@ -629,7 +629,7 @@ discard block |
||
| 629 | 629 | /** |
| 630 | 630 | * 设置获取获取GET参数 |
| 631 | 631 | * @access public |
| 632 | - * @param string|array $name 变量名 |
|
| 632 | + * @param boolean $name 变量名 |
|
| 633 | 633 | * @param mixed $default 默认值 |
| 634 | 634 | * @param string|array $filter 过滤方法 |
| 635 | 635 | * @return mixed |
@@ -783,9 +783,9 @@ discard block |
||
| 783 | 783 | /** |
| 784 | 784 | * 获取server参数 |
| 785 | 785 | * @access public |
| 786 | - * @param string|array $name 数据名称 |
|
| 786 | + * @param string $name 数据名称 |
|
| 787 | 787 | * @param string $default 默认值 |
| 788 | - * @param string|array $filter 过滤方法 |
|
| 788 | + * @param string $filter 过滤方法 |
|
| 789 | 789 | * @return mixed |
| 790 | 790 | */ |
| 791 | 791 | public function server($name = '', $default = null, $filter = '') |
@@ -1086,7 +1086,7 @@ discard block |
||
| 1086 | 1086 | * @param string $name 变量名 |
| 1087 | 1087 | * @param string $type 变量类型 |
| 1088 | 1088 | * @param bool $checkEmpty 是否检测空值 |
| 1089 | - * @return mixed |
|
| 1089 | + * @return boolean |
|
| 1090 | 1090 | */ |
| 1091 | 1091 | public function has($name, $type = 'param', $checkEmpty = false) |
| 1092 | 1092 | { |
@@ -260,7 +260,7 @@ |
||
| 260 | 260 | * Check if an item or items exist in an array using "dot" notation. |
| 261 | 261 | * |
| 262 | 262 | * @param \ArrayAccess|array $array |
| 263 | - * @param string|array $keys |
|
| 263 | + * @param string $keys |
|
| 264 | 264 | * @return bool |
| 265 | 265 | */ |
| 266 | 266 | public static function has($array, $keys) { |
@@ -462,7 +462,7 @@ |
||
| 462 | 462 | * 获取环境变量 |
| 463 | 463 | * |
| 464 | 464 | * @param string $key |
| 465 | - * @param mixed $default |
|
| 465 | + * @param string|false $default |
|
| 466 | 466 | * @return mixed |
| 467 | 467 | */ |
| 468 | 468 | function env($key, $default = null) |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | * Progress |
| 228 | 228 | * |
| 229 | 229 | * @access public |
| 230 | - * @param $callback |
|
| 230 | + * @param \Closure $callback |
|
| 231 | 231 | */ |
| 232 | 232 | public function progress($callback) |
| 233 | 233 | { |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | * Download Complete |
| 264 | 264 | * |
| 265 | 265 | * @access private |
| 266 | - * @param $fh |
|
| 266 | + * @param resource $fh |
|
| 267 | 267 | */ |
| 268 | 268 | private function downloadComplete($fh) |
| 269 | 269 | { |
@@ -442,7 +442,7 @@ discard block |
||
| 442 | 442 | * Get Info |
| 443 | 443 | * |
| 444 | 444 | * @access public |
| 445 | - * @param $opt |
|
| 445 | + * @param integer $opt |
|
| 446 | 446 | * |
| 447 | 447 | * @return mixed |
| 448 | 448 | */ |
@@ -462,7 +462,7 @@ discard block |
||
| 462 | 462 | * Get Opt |
| 463 | 463 | * |
| 464 | 464 | * @access public |
| 465 | - * @param $option |
|
| 465 | + * @param integer $option |
|
| 466 | 466 | * |
| 467 | 467 | * @return mixed |
| 468 | 468 | */ |
@@ -1105,7 +1105,7 @@ discard block |
||
| 1105 | 1105 | * Set Timeout |
| 1106 | 1106 | * |
| 1107 | 1107 | * @access public |
| 1108 | - * @param $seconds |
|
| 1108 | + * @param integer $seconds |
|
| 1109 | 1109 | */ |
| 1110 | 1110 | public function setTimeout($seconds) |
| 1111 | 1111 | { |
@@ -1130,7 +1130,7 @@ discard block |
||
| 1130 | 1130 | * Set User Agent |
| 1131 | 1131 | * |
| 1132 | 1132 | * @access public |
| 1133 | - * @param $user_agent |
|
| 1133 | + * @param string $user_agent |
|
| 1134 | 1134 | */ |
| 1135 | 1135 | public function setUserAgent($user_agent) |
| 1136 | 1136 | { |
@@ -1173,7 +1173,7 @@ discard block |
||
| 1173 | 1173 | * Using `curl -H "Host:" ...' is equivalent to $curl->removeHeader('Host');. |
| 1174 | 1174 | * |
| 1175 | 1175 | * @access public |
| 1176 | - * @param $key |
|
| 1176 | + * @param string $key |
|
| 1177 | 1177 | */ |
| 1178 | 1178 | public function removeHeader($key) |
| 1179 | 1179 | { |
@@ -1360,7 +1360,7 @@ discard block |
||
| 1360 | 1360 | * Parse Response Headers |
| 1361 | 1361 | * |
| 1362 | 1362 | * @access private |
| 1363 | - * @param $raw_response_headers |
|
| 1363 | + * @param string $raw_response_headers |
|
| 1364 | 1364 | * |
| 1365 | 1365 | * @return array |
| 1366 | 1366 | */ |