Skip to content

Commit 93b7c84

Browse files
committed
Add an assertion and eliminate dead code
1 parent b54f89b commit 93b7c84

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Zend/zend_inheritance.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,10 +354,9 @@ static void track_class_dependency(zend_class_entry *ce, zend_string *class_name
354354
{
355355
HashTable *ht;
356356

357+
ZEND_ASSERT(class_name);
357358
if (!CG(current_linking_class) || ce == CG(current_linking_class)) {
358359
return;
359-
} else if (!class_name) {
360-
class_name = ce->name;
361360
} else if (zend_string_equals_literal_ci(class_name, "self")
362361
|| zend_string_equals_literal_ci(class_name, "parent")) {
363362
return;

0 commit comments

Comments
 (0)