Skip to content

Commit

Permalink
Merge pull request #972 from Carnicero90/bugfix-backtrace-naming-conf…
Browse files Browse the repository at this point in the history
…licts

[2.x] Fixing Backtrace not found error if project dirname endswith pest
  • Loading branch information
nunomaduro authored Jan 25, 2024
2 parents 0aecd5d + 28ee291 commit 79da02c
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 79da02c

Please sign in to comment.