Skip to content

Ensure PrintNode is yielding string content#4780

Open
stof wants to merge 1 commit intotwigphp:3.xfrom
stof:patch-1
Open

Ensure PrintNode is yielding string content#4780
stof wants to merge 1 commit intotwigphp:3.xfrom
stof:patch-1

Conversation

@stof
Copy link
Member

@stof stof commented Feb 26, 2026

Closes #4765

TODO:

  • add test preventing regression
  • fix existing compilation tests asserting the compiled code
  • figure out whether some optimizations are possible for cases where the compiler can be sure that the expression is already a string (mostly string literals for now, as even EscaperRuntime::escape() does not always return a string)

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Stack traces are unusable for array-to-string conversions when using the yield-based system

1 participant