Skip to content

Commit

Permalink
PR remark
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche committed Apr 24, 2024
1 parent 9480a31 commit 4726fd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Backtrace.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,10 @@ protected function toFrameObjects(array $rawFrames): array
$reduceArgumentsAction = new ReduceArgumentsAction($this->resolveArgumentReducers());

foreach ($rawFrames as $rawFrame) {
$snippet = null;
$textSnippet = null;

if (substr($currentFile, 0, strlen(ClosureStream::STREAM_PROTO)) === ClosureStream::STREAM_PROTO) {
$snippet = $currentFile;
$textSnippet = $currentFile;
$currentFile = ClosureStream::STREAM_PROTO.'://function()';
$currentLine -= 1;
}
Expand All @@ -187,7 +187,7 @@ protected function toFrameObjects(array $rawFrames): array
$rawFrame['function'] ?? null,
$rawFrame['class'] ?? null,
$this->isApplicationFrame($currentFile),
$snippet
$textSnippet
);

$frames[] = $frame;
Expand Down

0 comments on commit 4726fd2

Please sign in to comment.