Skip to content

Commit cc42184

Browse files
committed
Replace error with assert
1 parent a83c0b0 commit cc42184

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Zend/zend_inheritance.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,9 @@ static zend_string *_resolve_parent_and_self(const zend_function *fe, zend_strin
216216
break;
217217

218218
case ZEND_FETCH_CLASS_STATIC:
219-
/* Note: this currently a syntax error */
220-
zend_error_noreturn(E_COMPILE_ERROR,
221-
"Cannot use static as a type constraint in %s::%s()",
222-
ZEND_FN_SCOPE_NAME(fe), ZSTR_VAL(fe->common.function_name));
219+
/* This currently a syntax error */
220+
ZEND_ASSERT(0);
221+
break;
223222

224223
EMPTY_SWITCH_DEFAULT_CASE();
225224
}

0 commit comments

Comments
 (0)