mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Zend: create a IS_VOID type AST rather a string (#21415)
This commit is contained in:
committed by
GitHub
parent
8b7c70da21
commit
113893b714
@@ -9057,8 +9057,8 @@ static void zend_compile_property_hooks(
|
||||
value_type_ast_ptr = ¶m->child[0];
|
||||
hook->child[0] = zend_ast_create_list(1, ZEND_AST_PARAM_LIST, param);
|
||||
}
|
||||
zend_ast *return_type = zend_ast_create_zval_from_str(ZSTR_KNOWN(ZEND_STR_VOID));
|
||||
return_type->attr = ZEND_NAME_NOT_FQ;
|
||||
zend_ast *return_type = zend_ast_create(ZEND_AST_TYPE);
|
||||
return_type->attr = IS_VOID;
|
||||
hook->child[3] = return_type;
|
||||
} else {
|
||||
ZEND_UNREACHABLE();
|
||||
|
||||
Reference in New Issue
Block a user