Oops, forgot error parameter

This commit is contained in:
Stanislav Malyshev 2019-03-06 22:44:16 -08:00
parent 0ef6c62685
commit 7803cb32af

View File

@ -5500,7 +5500,7 @@ static void zend_check_magic_method_attr(uint32_t attr, const char* method, zend
{
if (is_static) {
if (!(attr & ZEND_ACC_PUBLIC) || !(attr & ZEND_ACC_STATIC)) {
zend_error(E_WARNING, "The magic method %s() must have public visibility and be static");
zend_error(E_WARNING, "The magic method %s() must have public visibility and be static", method);
}
} else if (!(attr & ZEND_ACC_PUBLIC) || (attr & ZEND_ACC_STATIC)) {
zend_error(E_WARNING,