Skip to content

Commit

Permalink
Make sure we have file information for stack frame before using it for
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Nov 25, 2024
1 parent 7e4dffb commit 0009ef0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Runner/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,13 @@ private function stackTrace(): string
$excludeList = new ExcludeList(true);

foreach ($this->errorStackTrace() as $frame) {
/**
* @see https://github.com/sebastianbergmann/phpunit/issues/6043
*/
if (!isset($frame['file'])) {
continue;
}

if ($excludeList->isExcluded($frame['file'])) {
continue;
}
Expand Down

0 comments on commit 0009ef0

Please sign in to comment.