@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | if (!function_exists('request')) { |
380 | 380 | /** |
381 | 381 | * 获取当前Request对象实例 |
382 | - * @return Request |
|
382 | + * @return think\Request |
|
383 | 383 | */ |
384 | 384 | function request(): \think\Request |
385 | 385 | { |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | /** |
392 | 392 | * 创建普通 Response 对象实例 |
393 | 393 | * @param mixed $data 输出数据 |
394 | - * @param int|string $code 状态码 |
|
394 | + * @param integer $code 状态码 |
|
395 | 395 | * @param array $header 头信息 |
396 | 396 | * @param string $type |
397 | 397 | * @return Response |
@@ -57,7 +57,7 @@ |
||
57 | 57 | * 获取驱动配置 |
58 | 58 | * @param string $store |
59 | 59 | * @param string $name |
60 | - * @param null $default |
|
60 | + * @param string $default |
|
61 | 61 | * @return array |
62 | 62 | */ |
63 | 63 | public function getStoreConfig(string $store, string $name = null, $default = null) |
@@ -108,7 +108,7 @@ |
||
108 | 108 | * 追加(数组)缓存 |
109 | 109 | * @access public |
110 | 110 | * @param string $name 缓存变量名 |
111 | - * @param mixed $value 存储数据 |
|
111 | + * @param string $value 存储数据 |
|
112 | 112 | * @return void |
113 | 113 | */ |
114 | 114 | public function push(string $name, $value): void |
@@ -277,7 +277,7 @@ |
||
277 | 277 | |
278 | 278 | /** |
279 | 279 | * 删除文件夹 |
280 | - * @param $dirname |
|
280 | + * @param string $dirname |
|
281 | 281 | * @return bool |
282 | 282 | */ |
283 | 283 | private function rmdir($dirname) |
@@ -633,7 +633,7 @@ |
||
633 | 633 | /** |
634 | 634 | * 获取可能的建议 |
635 | 635 | * @access private |
636 | - * @param array $abbrevs |
|
636 | + * @param string[] $abbrevs |
|
637 | 637 | * @return string |
638 | 638 | */ |
639 | 639 | private function getAbbreviationSuggestions(array $abbrevs): string |
@@ -282,7 +282,7 @@ |
||
282 | 282 | * @param string $name 名称 |
283 | 283 | * @param int $mode 类型 |
284 | 284 | * @param string $description 描述 |
285 | - * @param mixed $default 默认值 |
|
285 | + * @param string $default 默认值 |
|
286 | 286 | * @return Command |
287 | 287 | */ |
288 | 288 | public function addArgument(string $name, int $mode = null, string $description = '', $default = null) |
@@ -20,6 +20,9 @@ |
||
20 | 20 | { |
21 | 21 | protected $type; |
22 | 22 | |
23 | + /** |
|
24 | + * @return string |
|
25 | + */ |
|
23 | 26 | abstract protected function getStub(); |
24 | 27 | |
25 | 28 | protected function configure() |
@@ -96,6 +96,11 @@ discard block |
||
96 | 96 | return $ret; |
97 | 97 | } |
98 | 98 | |
99 | + /** |
|
100 | + * @param string $inputStream |
|
101 | + * |
|
102 | + * @return string |
|
103 | + */ |
|
99 | 104 | private function autocomplete($inputStream) |
100 | 105 | { |
101 | 106 | $autocomplete = $this->question->getAutocompleterValues(); |
@@ -189,6 +194,9 @@ discard block |
||
189 | 194 | return $ret; |
190 | 195 | } |
191 | 196 | |
197 | + /** |
|
198 | + * @param string $inputStream |
|
199 | + */ |
|
192 | 200 | protected function getHiddenResponse($inputStream) |
193 | 201 | { |
194 | 202 | if ('\\' === DIRECTORY_SEPARATOR) { |
@@ -229,6 +237,9 @@ discard block |
||
229 | 237 | throw new \RuntimeException('Unable to hide the response.'); |
230 | 238 | } |
231 | 239 | |
240 | + /** |
|
241 | + * @param \Closure $interviewer |
|
242 | + */ |
|
232 | 243 | protected function validateAttempts($interviewer) |
233 | 244 | { |
234 | 245 | /** @var \Exception $error */ |
@@ -32,6 +32,9 @@ |
||
32 | 32 | return $content; |
33 | 33 | } |
34 | 34 | |
35 | + /** |
|
36 | + * @param string $messages |
|
37 | + */ |
|
35 | 38 | public function write($messages, bool $newline = false, int $options = 0) |
36 | 39 | { |
37 | 40 | $messages = (array) $messages; |