diff --git a/src/Runner/ErrorHandler.php b/src/Runner/ErrorHandler.php index c50dda0b52..244be902fb 100644 --- a/src/Runner/ErrorHandler.php +++ b/src/Runner/ErrorHandler.php @@ -263,7 +263,7 @@ private function trigger(TestMethod $test, bool $filterTrigger): IssueTrigger $triggeredInFirstPartyCode = true; } - if (isset($trace[0]['file']) && ( + if (isset($trace[1]['file']) && ( $trace[1]['file'] === $test->file() || $this->sourceFilter->includes($this->source, $trace[1]['file']))) { $triggerCalledFromFirstPartyCode = true;