Skip to content

Commit 838d80e

Browse files
committed
Update type inference for ZEND_GET_CLASS and ZEND_GET_CALLED_CLASS
These cannot return false anymore since PHP 8.0.
1 parent 893ca53 commit 838d80e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/Optimizer/zend_inference.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3584,7 +3584,7 @@ static zend_always_inline zend_result _zend_update_type_info(
35843584
break;
35853585
case ZEND_GET_CLASS:
35863586
case ZEND_GET_CALLED_CLASS:
3587-
UPDATE_SSA_TYPE(MAY_BE_FALSE|MAY_BE_STRING|MAY_BE_RCN, ssa_op->result_def);
3587+
UPDATE_SSA_TYPE(MAY_BE_STRING|MAY_BE_RCN, ssa_op->result_def);
35883588
break;
35893589
case ZEND_GET_TYPE:
35903590
UPDATE_SSA_TYPE(MAY_BE_STRING|MAY_BE_RC1|MAY_BE_RCN, ssa_op->result_def);

0 commit comments

Comments
 (0)