diff --git a/src/var-dumper/README.md b/src/var-dumper/README.md index 6f724b70..7e02bcf8 100644 --- a/src/var-dumper/README.md +++ b/src/var-dumper/README.md @@ -3,7 +3,7 @@ var-dumper 适配包,用来将变量打印到浏览器 # 安装 ```shell -composer require max/var-dumper:dev-master +composer require max/var-dumper ``` # 使用 diff --git a/src/var-dumper/src/Adapter/HyperfDumperHandler.php b/src/var-dumper/src/Adapter/HyperfDumperHandler.php index b285fde1..ed2273a7 100644 --- a/src/var-dumper/src/Adapter/HyperfDumperHandler.php +++ b/src/var-dumper/src/Adapter/HyperfDumperHandler.php @@ -32,7 +32,7 @@ public function handle(Throwable $e, ResponseInterface $response) { $this->stopPropagation(); - return $response->withBody(new SwooleStream($this->convertToHtml($e))); + return $response->withBody(new SwooleStream(self::convertToHtml($e))); } public function isValid(Throwable $e): bool