Skip to content

Commit

Permalink
Fixing Backtrace not found error if project dirname endswith pest
Browse files Browse the repository at this point in the history
  • Loading branch information
Carnicero90 authored Sep 29, 2023
1 parent a8b785f commit 28ee291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/Backtrace.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private static function backtrace(): array
continue;
}

if (str_contains($trace['file'], 'pest'.DIRECTORY_SEPARATOR.'src')) {
if (str_contains($trace['file'], DIRECTORY_SEPARATOR.'pestphp'.DIRECTORY_SEPARATOR.'pest'.DIRECTORY_SEPARATOR.'src')) {
continue;
}

Expand Down

0 comments on commit 28ee291

Please sign in to comment.