diff options
author | Gabriel Caruso <carusogabriel34@gmail.com> | 2020-04-16 11:26:54 +0200 |
---|---|---|
committer | Gabriel Caruso <carusogabriel34@gmail.com> | 2020-04-16 13:53:13 +0200 |
commit | add8c15a317fc591e26f645989f03cd24d895b9c (patch) | |
tree | 9d315dedf11b959444349541f531580e0e4c7c84 /Zend/zend_API.c | |
parent | ea0110f0de79124e298eba7724149b9513845fcb (diff) | |
download | php-git-add8c15a317fc591e26f645989f03cd24d895b9c.tar.gz |
Align magic methods' camelCase with documentation
Closes GH-5398
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r-- | Zend/zend_API.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c index ea78c22a46..6d23b34372 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -2019,10 +2019,10 @@ ZEND_API void zend_check_magic_method_implementation(const zend_class_entry *ce, } else if (name_len == sizeof(ZEND_TOSTRING_FUNC_NAME) - 1 && !memcmp(lcname, ZEND_TOSTRING_FUNC_NAME, sizeof(ZEND_TOSTRING_FUNC_NAME)-1) && fptr->common.num_args != 0 ) { - zend_error(error_type, "Method %s::%s() cannot take arguments", ZSTR_VAL(ce->name), ZEND_TOSTRING_FUNC_NAME); + zend_error(error_type, "Method %s::__toString() cannot take arguments", ZSTR_VAL(ce->name)); } else if (name_len == sizeof(ZEND_DEBUGINFO_FUNC_NAME) - 1 && !memcmp(lcname, ZEND_DEBUGINFO_FUNC_NAME, sizeof(ZEND_DEBUGINFO_FUNC_NAME)-1) && fptr->common.num_args != 0) { - zend_error(error_type, "Method %s::%s() cannot take arguments", ZSTR_VAL(ce->name), ZEND_DEBUGINFO_FUNC_NAME); + zend_error(error_type, "Method %s::__debugInfo() cannot take arguments", ZSTR_VAL(ce->name)); } } /* }}} */ |