Skip to content

Commit 836dcb1

Browse files
committed
Rename __callstatic (internal name) to __callStatic (userland name) in error message
1 parent feef180 commit 836dcb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_API.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1911,9 +1911,9 @@ ZEND_API void zend_check_magic_method_implementation(const zend_class_entry *ce,
19111911
!memcmp(lcname, ZEND_CALLSTATIC_FUNC_NAME, sizeof(ZEND_CALLSTATIC_FUNC_NAME)-1)
19121912
) {
19131913
if (fptr->common.num_args != 2) {
1914-
zend_error(error_type, "Method %s::%s() must take exactly 2 arguments", ce->name->val, ZEND_CALLSTATIC_FUNC_NAME);
1914+
zend_error(error_type, "Method %s::__callStatic() must take exactly 2 arguments", ce->name->val);
19151915
} else if (ARG_SHOULD_BE_SENT_BY_REF(fptr, 1) || ARG_SHOULD_BE_SENT_BY_REF(fptr, 2)) {
1916-
zend_error(error_type, "Method %s::%s() cannot take arguments by reference", ce->name->val, ZEND_CALLSTATIC_FUNC_NAME);
1916+
zend_error(error_type, "Method %s::__callStatic() cannot take arguments by reference", ce->name->val);
19171917
}
19181918
} else if (name_len == sizeof(ZEND_TOSTRING_FUNC_NAME) - 1 &&
19191919
!memcmp(lcname, ZEND_TOSTRING_FUNC_NAME, sizeof(ZEND_TOSTRING_FUNC_NAME)-1) && fptr->common.num_args != 0

0 commit comments

Comments
 (0)