• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

php-bug-catcher / reporter-bundle / 33487050779
77%
main: 77%

Build:
Build:
LAST BUILD BRANCH: v2.1.1
DEFAULT BRANCH: main
Ran 01 Sep 2026 08:27AM UTC
Jobs 4
Files 17
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Sep 2026 07:58AM UTC coverage: 76.875% (+12.9%) from 63.971%
33487050779

push

github

tito10047
fix: include the throw site as the first stack trace frame

BugCatcher::logException() fed the raw getTraceAsString() into the frame
parser. That string never contains the throw site -- its #0 is already the
caller of the frame that threw -- so the frame where the exception actually
originated was missing and every frame appeared shifted by one.

The Monolog path worked around this by prepending a synthetic
"#0 file(line): message" text line in ErrorFormater and parsing it back, but
the vendor regex '/#\d+ (.*)\((\d+)\): (.*)/' is greedy: a message containing
"(1064): " swallowed the real file and line.

Build the first Codeframe straight from the Throwable instead. The new
ThrowSiteStacktrace extends the vendor parser to reuse its protected
isValidFile()/getTheCodeFromTheFile(), so the synthetic frame carries the same
code window as the parsed ones, and it also walks the getPrevious() chain,
which ErrorFormater used to drop entirely.

Both send paths now go through it: WriteStackTraceListener always, and
BugCatcherMonologHandler whenever context['exception'] holds a Throwable,
falling back to the formatted string otherwise. The payload format is
unchanged, so no server or config changes are needed.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

23 of 26 new or added lines in 4 files covered. (88.46%)

3 existing lines in 1 file now uncovered.

123 of 160 relevant lines covered (76.88%)

17.33 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
90.0
src/Writer/ThrowSiteStacktrace.php
1
89.47
89.47% src/Service/BugCatcherMonologHandler.php

Coverage Regressions

Lines Coverage ∆ File
3
20.0
-55.0% src/Writer/CollectCodeFrame.php
Jobs
ID Job ID Ran Files Coverage
1 33487050779.1 01 Sep 2026 08:27AM UTC 17
76.88
GitHub Action Run
2 33487050779.2 01 Sep 2026 08:27AM UTC 17
76.88
GitHub Action Run
3 33487050779.3 01 Sep 2026 08:27AM UTC 17
76.88
GitHub Action Run
4 33487050779.4 01 Sep 2026 08:27AM UTC 17
76.88
GitHub Action Run
Source Files on build 33487050779
  • Tree
  • List 17
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 98ffd337 on github
  • Prev Build on v2.1.0 (#33049409328)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc