Skip to content

ref(frame-builder): Compare prefixes to an empty array to drop Mago baseline entry - #2430

Merged
stayallive merged 1 commit into
masterfrom
ref/frame-builder-prefixes-check
Nov 27, 2026
Merged

stayallive merged 1 commit into
masterfrom
ref/frame-builder-prefixes-check

Conversation

@sentry-junior

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

Copy link
Copy Markdown
Contributor

Removes one entry from the Mago baseline (analysis-baseline.toml):

  • src/FrameBuilder.php — invalid-operand: "Right operand in && operation is an array." (count 1, in buildFromBacktraceFrame())

The PHP 8.4 closure-name prefix stripping checked $this->options->getPrefixes() by array truthiness. It now compares the result with !== [] explicitly.

This is safe because Options::getPrefixes() has a native array return type, so !== [] is true in exactly the cases where the array was truthy. The branch runs under the same conditions as before.

via automation sched_a59acc45df166a80a839d0b32321e740 · Run ID sched_a59acc45df166a80a839d0b32321e740:1795770000000.

--

View Session [Sentry]

@stayallive
stayallive marked this pull request as ready for review November 27, 2026 15:42
@stayallive
stayallive requested a review from a team as a code owner November 27, 2026 15:42
@stayallive
stayallive merged commit 1071de0 into master Nov 27, 2026
60 checks passed
@stayallive
stayallive deleted the ref/frame-builder-prefixes-check branch November 27, 2026 15:42
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.

1 participant