Skip to content

Commit d6a53ed

Browse files
rjhdbycmb69
rjhdby
authored andcommitted
Unify clone method error message
1 parent 78a1d76 commit d6a53ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6302,7 +6302,7 @@ void zend_compile_class_decl(zend_ast *ast, zend_bool toplevel) /* {{{ */
63026302
ZSTR_VAL(ce->name), ZSTR_VAL(ce->clone->common.function_name));
63036303
} else if (ce->clone->common.fn_flags & ZEND_ACC_HAS_RETURN_TYPE) {
63046304
zend_error_noreturn(E_COMPILE_ERROR,
6305-
"%s::%s() cannot declare a return type",
6305+
"Clone method %s::%s() cannot declare a return type",
63066306
ZSTR_VAL(ce->name), ZSTR_VAL(ce->clone->common.function_name));
63076307
}
63086308
}

0 commit comments

Comments
 (0)