@@ -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; |
@@ -21,6 +21,9 @@ |
||
21 | 21 | // do nothing |
22 | 22 | } |
23 | 23 | |
24 | + /** |
|
25 | + * @param string $messages |
|
26 | + */ |
|
24 | 27 | public function write($messages, bool $newline = false, int $options = 0) |
25 | 28 | { |
26 | 29 | // do nothing |
@@ -154,7 +154,7 @@ |
||
154 | 154 | /** |
155 | 155 | * 根据字符串创建新的样式实例 |
156 | 156 | * @param string $string |
157 | - * @return Style|bool |
|
157 | + * @return Style|null |
|
158 | 158 | */ |
159 | 159 | private function createStyleFromString($string) |
160 | 160 | { |
@@ -105,7 +105,7 @@ |
||
105 | 105 | /** |
106 | 106 | * 设置表格头信息 以及对齐方式 |
107 | 107 | * @access public |
108 | - * @param array $header 要输出的Header信息 |
|
108 | + * @param string[] $header 要输出的Header信息 |
|
109 | 109 | * @param int $align 对齐方式 默认1 ALGIN_LEFT 0 ALIGN_RIGHT 2 ALIGN_CENTER |
110 | 110 | * @return void |
111 | 111 | */ |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | /** |
79 | 79 | * 设置当前容器的实例 |
80 | 80 | * @access public |
81 | - * @param object|Closure $instance |
|
81 | + * @param App $instance |
|
82 | 82 | * @return void |
83 | 83 | */ |
84 | 84 | public static function setInstance($instance): void |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | * 调用反射执行类的方法 支持参数绑定 |
332 | 332 | * @access public |
333 | 333 | * @param object $instance 对象实例 |
334 | - * @param mixed $reflect 反射类 |
|
334 | + * @param ReflectionMethod $reflect 反射类 |
|
335 | 335 | * @param array $vars 参数 |
336 | 336 | * @return mixed |
337 | 337 | */ |
@@ -198,7 +198,7 @@ |
||
198 | 198 | * 触发事件 |
199 | 199 | * @access public |
200 | 200 | * @param string|object $event 事件名称 |
201 | - * @param mixed $params 传入参数 |
|
201 | + * @param null|Response $params 传入参数 |
|
202 | 202 | * @param bool $once 只获取一个有效返回值 |
203 | 203 | * @return mixed |
204 | 204 | */ |
@@ -13,13 +13,13 @@ |
||
13 | 13 | namespace think\exception; |
14 | 14 | |
15 | 15 | use Exception; |
16 | +use Throwable; |
|
16 | 17 | use think\App; |
18 | +use think\Request; |
|
19 | +use think\Response; |
|
17 | 20 | use think\console\Output; |
18 | 21 | use think\db\exception\DataNotFoundException; |
19 | 22 | use think\db\exception\ModelNotFoundException; |
20 | -use think\Request; |
|
21 | -use think\Response; |
|
22 | -use Throwable; |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * 系统异常处理类 |
@@ -91,6 +91,10 @@ |
||
91 | 91 | } |
92 | 92 | |
93 | 93 | // 调用实际类的方法 |
94 | + |
|
95 | + /** |
|
96 | + * @param string $method |
|
97 | + */ |
|
94 | 98 | public static function __callStatic($method, $params) |
95 | 99 | { |
96 | 100 | return call_user_func_array([static::createFacade(), $method], $params); |
@@ -12,8 +12,8 @@ |
||
12 | 12 | |
13 | 13 | namespace think\file; |
14 | 14 | |
15 | -use think\exception\FileException; |
|
16 | 15 | use think\File; |
16 | +use think\exception\FileException; |
|
17 | 17 | |
18 | 18 | class UploadedFile extends File |
19 | 19 | { |