mirror of
https://github.com/php/php-src.git
synced 2026-04-17 04:51:03 +02:00
Unify clone method error message
This commit is contained in:
committed by
Christoph M. Becker
parent
78a1d76962
commit
d6a53ed5e0
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user