Skip to content

zend_ast: Always print encaps list variables with braces when exporting AST#22293

Merged
TimWolla merged 4 commits into
php:masterfrom
TimWolla:zend-ast-export-encaps-list-brace
Jun 15, 2026
Merged

zend_ast: Always print encaps list variables with braces when exporting AST#22293
TimWolla merged 4 commits into
php:masterfrom
TimWolla:zend-ast-export-encaps-list-brace

Conversation

@TimWolla

Copy link
Copy Markdown
Member

The "{$foo}" variant of interpolating variables into a string is the only one that reliably works all the time. Always use it for simplicity.

Fixes #22291.

…ng AST

The `"{$foo}"` variant of interpolating variables into a string is the only one
that reliably works all the time. Always use it for simplicity.

Fixes php#22291.
@TimWolla TimWolla requested a review from bukka as a code owner June 13, 2026 13:15
@TimWolla TimWolla requested a review from iluuu1994 June 13, 2026 13:18
@TimWolla TimWolla changed the title zend_ast: Always print encaps list variables with braces when exporti… zend_ast: Always print encaps list variables with braces when exporting AST Jun 13, 2026

@Girgias Girgias left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with this, but others may have a different opinion.

@TimWolla TimWolla changed the base branch from PHP-8.4 to master June 14, 2026 11:30
@TimWolla TimWolla merged commit dee1317 into php:master Jun 15, 2026
18 checks passed
@TimWolla TimWolla deleted the zend-ast-export-encaps-list-brace branch June 15, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AST pretty printing does not correctly handle braces in string interpolation

3 participants