Skip to content

Commit 7803cb3

Browse files
committed
Oops, forgot error parameter
1 parent 0ef6c62 commit 7803cb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5500,7 +5500,7 @@ static void zend_check_magic_method_attr(uint32_t attr, const char* method, zend
55005500
{
55015501
if (is_static) {
55025502
if (!(attr & ZEND_ACC_PUBLIC) || !(attr & ZEND_ACC_STATIC)) {
5503-
zend_error(E_WARNING, "The magic method %s() must have public visibility and be static");
5503+
zend_error(E_WARNING, "The magic method %s() must have public visibility and be static", method);
55045504
}
55055505
} else if (!(attr & ZEND_ACC_PUBLIC) || (attr & ZEND_ACC_STATIC)) {
55065506
zend_error(E_WARNING,

0 commit comments

Comments
 (0)