Skip to content

Commit 0b86dcb

Browse files
committed
Remove the duplicated condition
1 parent c6012d5 commit 0b86dcb

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Zend/zend_builtin_functions.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -652,11 +652,6 @@ ZEND_FUNCTION(get_parent_class)
652652
ce = zend_lookup_class(str);
653653
} else {
654654
ce = zend_get_executed_scope();
655-
if (ce && ce->parent) {
656-
RETURN_STR_COPY(ce->parent->name);
657-
} else {
658-
RETURN_FALSE;
659-
}
660655
}
661656

662657
if (ce && ce->parent) {

0 commit comments

Comments
 (0)