Skip to content

Commit f945036

Browse files
committed
Check if file index exists
1 parent 3ca06c8 commit f945036

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Stackify/Log/Entities/ErrorWrapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ private function filterTrace(array $trace)
123123
}
124124
foreach ($trace as $item) {
125125
// check if path starts with $excludePath
126-
if (false === strpos($item['file'], $excludePath)) {
126+
if (isset($item['file']) && false === strpos($item['file'], $excludePath)) {
127127
$filtered[] = $item;
128128
}
129129
}
@@ -141,4 +141,4 @@ private function getFullPathThatContains($searchPath)
141141
return $result;
142142
}
143143

144-
}
144+
}

0 commit comments

Comments
 (0)