From 28ee2917f1468b64eb8593e885d0ff64936d18ad Mon Sep 17 00:00:00 2001 From: Filippo Montani <78483736+Carnicero90@users.noreply.github.com> Date: Sat, 30 Sep 2023 00:05:42 +0200 Subject: [PATCH] Fixing Backtrace not found error if project dirname endswith pest --- src/Support/Backtrace.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Support/Backtrace.php b/src/Support/Backtrace.php index 6dc38828..f08ecd6e 100644 --- a/src/Support/Backtrace.php +++ b/src/Support/Backtrace.php @@ -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; }