mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Unify clone method error message
This commit is contained in:
parent
78a1d76962
commit
d6a53ed5e0
1 changed files with 1 additions and 1 deletions
|
@ -6302,7 +6302,7 @@ void zend_compile_class_decl(zend_ast *ast, zend_bool toplevel) /* {{{ */
|
|||
ZSTR_VAL(ce->name), ZSTR_VAL(ce->clone->common.function_name));
|
||||
} else if (ce->clone->common.fn_flags & ZEND_ACC_HAS_RETURN_TYPE) {
|
||||
zend_error_noreturn(E_COMPILE_ERROR,
|
||||
"%s::%s() cannot declare a return type",
|
||||
"Clone method %s::%s() cannot declare a return type",
|
||||
ZSTR_VAL(ce->name), ZSTR_VAL(ce->clone->common.function_name));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue