Skip to content

Commit 0009ef0

Browse files
Make sure we have file information for stack frame before using it for #6043
1 parent 7e4dffb commit 0009ef0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Runner/ErrorHandler.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,13 @@ private function stackTrace(): string
400400
$excludeList = new ExcludeList(true);
401401

402402
foreach ($this->errorStackTrace() as $frame) {
403+
/**
404+
* @see https://github.com/sebastianbergmann/phpunit/issues/6043
405+
*/
406+
if (!isset($frame['file'])) {
407+
continue;
408+
}
409+
403410
if ($excludeList->isExcluded($frame['file'])) {
404411
continue;
405412
}

0 commit comments

Comments
 (0)