Skip to content

Commit

Permalink
Update type inference for ZEND_GET_CLASS and ZEND_GET_CALLED_CLASS
Browse files Browse the repository at this point in the history
These cannot return false anymore since PHP 8.0.
  • Loading branch information
nielsdos committed Jul 10, 2023
1 parent 893ca53 commit 838d80e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Zend/Optimizer/zend_inference.c
Expand Up @@ -3584,7 +3584,7 @@ static zend_always_inline zend_result _zend_update_type_info(
break;
case ZEND_GET_CLASS:
case ZEND_GET_CALLED_CLASS:
UPDATE_SSA_TYPE(MAY_BE_FALSE|MAY_BE_STRING|MAY_BE_RCN, ssa_op->result_def);
UPDATE_SSA_TYPE(MAY_BE_STRING|MAY_BE_RCN, ssa_op->result_def);
break;
case ZEND_GET_TYPE:
UPDATE_SSA_TYPE(MAY_BE_STRING|MAY_BE_RC1|MAY_BE_RCN, ssa_op->result_def);
Expand Down

0 comments on commit 838d80e

Please sign in to comment.