diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 3054da9d8c9..7d703262f14 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -3975,7 +3975,7 @@ ZEND_METHOD(reflection_class, getStartLine) return; } GET_REFLECTION_OBJECT_PTR(ce); - if (ce->type == ZEND_USER_FUNCTION) { + if (ce->type == ZEND_USER_CLASS) { RETURN_LONG(ce->info.user.line_start); } RETURN_FALSE;