Skip to content

ref(frame-builder): Initialize $matches before preg_match to drop Mago baseline entry - #2409

Draft
sentry-junior[bot] wants to merge 1 commit into
masterfrom
chore/mago-baseline-framebuilder-matches
Draft

sentry-junior[bot] wants to merge 1 commit into
masterfrom
chore/mago-baseline-framebuilder-matches

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Removes this Mago baseline entry:

  • src/FrameBuilder.php: reference-to-undefined-variable: Reference created from a previously undefined variable `$matches`. (count 1)

FrameBuilder::buildFromBacktraceFrame() passed an undeclared $matches by reference to preg_match(). It now sets $matches = [] first.

Nothing breaks: preg_match() always overwrites $matches, and the variable is only read when the match succeeds, so behavior stays the same.

via automation sched_a59acc45df166a80a839d0b32321e740 · Run ID sched_a59acc45df166a80a839d0b32321e740:1795165200000.

--

View Session [Sentry]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants