Skip to content

Commit 42bf8a6

Browse files
committed
Drop return for engine compiler error bail
1 parent 0f0d697 commit 42bf8a6

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
@@ -1962,7 +1962,6 @@ static zend_type zend_resolve_name_type(zend_type type, const zend_class_entry *
19621962
if (!ce->parent) {
19631963
zend_error_noreturn(E_COMPILE_ERROR,
19641964
"Cannot use trait which has \"parent\" as a type when current class scope has no parent");
1965-
return (zend_type) ZEND_TYPE_INIT_NONE(0);
19661965
}
19671966
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));
19681967
return resolved_type;

0 commit comments

Comments
 (0)