Skip to content

Commit 926b6df

Browse files
committed
correct error message for incomplete class instantiation
1 parent a689ada commit 926b6df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/incomplete_class.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static zend_function *incomplete_class_get_method(zend_object **object, zend_str
9898
/* {{{ Private constructor preventing instantiation */
9999
static ZEND_COLD zend_function *incomplete_class_get_constructor(zend_object *object) /* {{{ */
100100
{
101-
zend_throw_error(NULL, "Instantiation of class Closure is not allowed");
101+
zend_throw_error(NULL, "Instantiation of class __PHP_Incomplete_Class is not allowed");
102102
return NULL;
103103
}
104104

0 commit comments

Comments
 (0)