Skip to content

Commit

Permalink
feat: Syntax sugar highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to committed May 26, 2024
1 parent 78873fb commit 873bb16
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Client/TrapHandle.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ public function context(mixed ...$values): self
return $this;
}

public function highlight(string $language): self

Check warning on line 175 in src/Client/TrapHandle.php

View check run for this annotation

Codecov / codecov/patch

src/Client/TrapHandle.php#L175

Added line #L175 was not covered by tests
{
return $this->context(language: $language);

Check warning on line 177 in src/Client/TrapHandle.php

View check run for this annotation

Codecov / codecov/patch

src/Client/TrapHandle.php#L177

Added line #L177 was not covered by tests
}

public function __destruct()
{
$this->haveToSend() and $this->sendDump();
Expand Down

0 comments on commit 873bb16

Please sign in to comment.