Skip to content

Commit 28a3192

Browse files
committed
Fix property hook name mismatch
1 parent df49e68 commit 28a3192

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Zend/zend_ast.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1799,14 +1799,7 @@ static ZEND_COLD void zend_ast_export_hook_list(smart_str *str, zend_ast_list *h
17991799
if (hook->flags & ZEND_ACC_FINAL) {
18001800
smart_str_appends(str, "final ");
18011801
}
1802-
switch (i) {
1803-
case ZEND_PROPERTY_HOOK_GET:
1804-
smart_str_appends(str, "get");
1805-
break;
1806-
case ZEND_PROPERTY_HOOK_SET:
1807-
smart_str_appends(str, "set");
1808-
break;
1809-
}
1802+
smart_str_append(str, hook->name);
18101803
zend_ast *body = hook->child[2];
18111804
if (body == NULL) {
18121805
smart_str_appendc(str, ';');

0 commit comments

Comments
 (0)