We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b7c70d commit 113893bCopy full SHA for 113893b
1 file changed
Zend/zend_compile.c
@@ -9057,8 +9057,8 @@ static void zend_compile_property_hooks(
9057
value_type_ast_ptr = ¶m->child[0];
9058
hook->child[0] = zend_ast_create_list(1, ZEND_AST_PARAM_LIST, param);
9059
}
9060
- zend_ast *return_type = zend_ast_create_zval_from_str(ZSTR_KNOWN(ZEND_STR_VOID));
9061
- return_type->attr = ZEND_NAME_NOT_FQ;
+ zend_ast *return_type = zend_ast_create(ZEND_AST_TYPE);
+ return_type->attr = IS_VOID;
9062
hook->child[3] = return_type;
9063
} else {
9064
ZEND_UNREACHABLE();
0 commit comments