Skip to content

Commit c75d1a4

Browse files
committed
调整依赖
1 parent 83027e7 commit c75d1a4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# think-trace
22

3-
用于ThinkPHP6+的页面Trace扩展,支持Html页面和浏览器控制台两种方式输出。
3+
用于ThinkPHP8.1的页面Trace扩展,支持Html页面和浏览器控制台两种方式输出。
44

55
## 安装
66

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
}
1010
],
1111
"require": {
12-
"php": ">=7.1.0",
13-
"topthink/framework": "^6.0|^8.0"
12+
"php": ">=8.0",
13+
"topthink/framework": "^8.1"
1414
},
1515
"autoload": {
1616
"psr-4": {

src/TraceDebug.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ class TraceDebug
3131
* Trace日志
3232
* @var array
3333
*/
34-
protected $log = [];
34+
protected array $log = [];
3535

3636
/**
3737
* 配置参数
3838
* @var array
3939
*/
40-
protected $config = [];
40+
protected array $config = [];
4141

4242
/** @var App */
4343
protected $app;
@@ -107,7 +107,7 @@ public function traceDebug(Response $response, &$content)
107107
//TODO 记录
108108
} else {
109109
$log = $this->app->log->getLog($config['channel'] ?? '');
110-
110+
111111
$this->parseLog($log);
112112
$output = $trace->output($this->app, $response, $this->log);
113113
if (is_string($output)) {

0 commit comments

Comments
 (0)