Skip to content

zend_ast: Fix AST export of property hook parameters and attributes - #25421

Closed
jorgsowa wants to merge 1 commit into
php:PHP-8.6from
jorgsowa:fix-hook-ast-export-params-8.6
Closed

jorgsowa wants to merge 1 commit into
php:PHP-8.6from
jorgsowa:fix-hook-ast-export-params-8.6

Conversation

@jorgsowa

Copy link
Copy Markdown
Contributor

set(int $v) => $v was exported as set => $v, and hook attributes were dropped.

Follow-up #25069 (review)

set(int $v) => $v was exported as set => $v, and hook attributes were
dropped.
@jorgsowa
jorgsowa requested a review from iliaal November 12, 2026 14:19
@jorgsowa jorgsowa self-assigned this Nov 12, 2026

@iliaal iliaal 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.

LGTM, thanks. Nit: zend_ast_export_attributes(str, hook->child[4], indent, true), the other call sites pass true/false.

@jorgsowa

Copy link
Copy Markdown
Contributor Author

Thanks. The formatting is completely off. I think we should improve it when all ast gaps are patched.

@jorgsowa jorgsowa closed this in a5d34b4 Nov 12, 2026
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.

2 participants