Skip to content

Commit 0cba85b

Browse files
committed
Fix property hook name mismatch
1 parent 6920aa2 commit 0cba85b

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
@@ -1757,14 +1757,7 @@ static ZEND_COLD void zend_ast_export_hook_list(smart_str *str, zend_ast_list *h
17571757
if (hook->flags & ZEND_ACC_FINAL) {
17581758
smart_str_appends(str, "final ");
17591759
}
1760-
switch (i) {
1761-
case ZEND_PROPERTY_HOOK_GET:
1762-
smart_str_appends(str, "get");
1763-
break;
1764-
case ZEND_PROPERTY_HOOK_SET:
1765-
smart_str_appends(str, "set");
1766-
break;
1767-
}
1760+
smart_str_append(str, hook->name);
17681761
zend_ast *body = hook->child[2];
17691762
if (body == NULL) {
17701763
smart_str_appendc(str, ';');

0 commit comments

Comments
 (0)