Skip to content

Commit d2b9034

Browse files
committed
Adjust for new stub naming convention
1 parent 7e9865c commit d2b9034

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ast.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,7 @@ PHP_FUNCTION(get_supported_versions) {
12531253
}
12541254
}
12551255

1256-
PHP_METHOD(Node, __construct) {
1256+
PHP_METHOD(ast_Node, __construct) {
12571257
int num_args = ZEND_NUM_ARGS();
12581258
if (num_args == 0) {
12591259
/* If arguments aren't passed, leave them as their default values. */
@@ -1448,7 +1448,7 @@ PHP_MINIT_FUNCTION(ast) {
14481448

14491449
ast_register_flag_constant("PARENTHESIZED_CONDITIONAL", ZEND_PARENTHESIZED_CONDITIONAL);
14501450

1451-
INIT_CLASS_ENTRY(tmp_ce, "ast\\Node", class_Node_methods);
1451+
INIT_CLASS_ENTRY(tmp_ce, "ast\\Node", class_ast_Node_methods);
14521452
ast_node_ce = zend_register_internal_class(&tmp_ce);
14531453
ast_declare_property(ast_node_ce, AST_STR(str_kind), &zv_null);
14541454
ast_declare_property(ast_node_ce, AST_STR(str_flags), &zv_null);

ast_arginfo.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ast_get_supported_versions, 0, 0
2727
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, exclude_deprecated, _IS_BOOL, 0, "false")
2828
ZEND_END_ARG_INFO()
2929

30-
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Node___construct, 0, 0, 0)
30+
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ast_Node___construct, 0, 0, 0)
3131
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, kind, IS_LONG, 1, "null")
3232
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 1, "null")
3333
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, children, IS_ARRAY, 1, "null")
@@ -41,7 +41,7 @@ ZEND_FUNCTION(get_kind_name);
4141
ZEND_FUNCTION(kind_uses_flags);
4242
ZEND_FUNCTION(get_metadata);
4343
ZEND_FUNCTION(get_supported_versions);
44-
ZEND_METHOD(Node, __construct);
44+
ZEND_METHOD(ast_Node, __construct);
4545

4646

4747
static const zend_function_entry ext_functions[] = {
@@ -55,7 +55,7 @@ static const zend_function_entry ext_functions[] = {
5555
};
5656

5757

58-
static const zend_function_entry class_Node_methods[] = {
59-
ZEND_ME(Node, __construct, arginfo_class_Node___construct, ZEND_ACC_PUBLIC)
58+
static const zend_function_entry class_ast_Node_methods[] = {
59+
ZEND_ME(ast_Node, __construct, arginfo_class_ast_Node___construct, ZEND_ACC_PUBLIC)
6060
ZEND_FE_END
6161
};

0 commit comments

Comments
 (0)