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

Remove unnecessary _IS_BOOL case (#12230)

This can never be executed because booleans are handled in a special
case at the top of sxe_object_cast_ex().
This commit is contained in:
Niels Dossche
2023-09-17 16:19:22 +02:00
committed by GitHub
parent bae30682b8
commit 695ec3c97e

View File

@@ -1805,9 +1805,6 @@ static zend_result cast_object(zval *object, int type, char *contents)
case IS_STRING:
convert_to_string(object);
break;
case _IS_BOOL:
convert_to_boolean(object);
break;
case IS_LONG:
convert_to_long(object);
break;