Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用self代替this #55

Merged
merged 2 commits into from
Jul 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/var-dumper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var-dumper 适配包,用来将变量打印到浏览器
# 安装

```shell
composer require max/var-dumper:dev-master
composer require max/var-dumper
```

# 使用
Expand Down
2 changes: 1 addition & 1 deletion src/var-dumper/src/Adapter/HyperfDumperHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down