Skip to content

Commit 113893b

Browse files
authored
Zend: create a IS_VOID type AST rather a string (php#21415)
1 parent 8b7c70d commit 113893b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Zend/zend_compile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9057,8 +9057,8 @@ static void zend_compile_property_hooks(
90579057
value_type_ast_ptr = &param->child[0];
90589058
hook->child[0] = zend_ast_create_list(1, ZEND_AST_PARAM_LIST, param);
90599059
}
9060-
zend_ast *return_type = zend_ast_create_zval_from_str(ZSTR_KNOWN(ZEND_STR_VOID));
9061-
return_type->attr = ZEND_NAME_NOT_FQ;
9060+
zend_ast *return_type = zend_ast_create(ZEND_AST_TYPE);
9061+
return_type->attr = IS_VOID;
90629062
hook->child[3] = return_type;
90639063
} else {
90649064
ZEND_UNREACHABLE();

0 commit comments

Comments
 (0)