Skip to content

Commit cb59e0d

Browse files
committed
Drop return for engine compiler error bail
1 parent 22cc698 commit cb59e0d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Zend/zend_inheritance.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1945,7 +1945,6 @@ static zend_type zend_resolve_name_type(zend_type type, const zend_class_entry *
19451945
if (!ce->parent) {
19461946
zend_error_noreturn(E_COMPILE_ERROR,
19471947
"Cannot use trait which has \"parent\" as a type when current class scope has no parent");
1948-
return (zend_type) ZEND_TYPE_INIT_NONE(0);
19491948
}
19501949
zend_type resolved_type = (zend_type) ZEND_TYPE_INIT_CLASS(zend_string_copy(ce->parent->name), /* allows_null */ false, /* extra_flags */ ZEND_TYPE_FULL_MASK(type));
19511950
return resolved_type;

0 commit comments

Comments
 (0)