diff --git a/src/Backtrace.php b/src/Backtrace.php index 96b5c2a..2db1208 100644 --- a/src/Backtrace.php +++ b/src/Backtrace.php @@ -221,11 +221,7 @@ protected function isApplicationFrame(string $frameFilename): bool $relativeFile = array_reverse(explode($this->applicationPath ?? '', $frameFilename, 2))[0]; } - if (strpos($relativeFile, DIRECTORY_SEPARATOR.'vendor') === 0) { - return false; - } - - return true; + return (bool) strpos($relativeFile, DIRECTORY_SEPARATOR.'vendor'); } protected function removeBacktracePackageFrames(array $frames): array