1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Update type inference for ZEND_GET_CLASS and ZEND_GET_CALLED_CLASS

These cannot return false anymore since PHP 8.0.
This commit is contained in:
Niels Dossche
2023-07-09 22:12:35 +02:00
parent 893ca537b0
commit 838d80e7ee

View File

@@ -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);