Skip to content

Commit a22f181

Browse files
tpuntkrakjoe
authored andcommitted
Fix ce comparison
1 parent e00c2f3 commit a22f181

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/reflection/php_reflection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3975,7 +3975,7 @@ ZEND_METHOD(reflection_class, getStartLine)
39753975
return;
39763976
}
39773977
GET_REFLECTION_OBJECT_PTR(ce);
3978-
if (ce->type == ZEND_USER_FUNCTION) {
3978+
if (ce->type == ZEND_USER_CLASS) {
39793979
RETURN_LONG(ce->info.user.line_start);
39803980
}
39813981
RETURN_FALSE;

0 commit comments

Comments
 (0)