Skip to content

Commit e6e4d62

Browse files
committed
Convert fallthrough comment to pseudo-keyword in JSON extension
1 parent 05ca26a commit e6e4d62

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/json/json_encoder.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,7 @@ int php_json_encode_zval(smart_str *buf, zval *val, int options, php_json_encode
546546
return php_json_encode_serializable_object(buf, val, options, encoder);
547547
}
548548
/* fallthrough -- Non-serializable object */
549+
fallthrough;
549550
case IS_ARRAY: {
550551
/* Avoid modifications (and potential freeing) of the array through a reference when a
551552
* jsonSerialize() method is invoked. */

0 commit comments

Comments
 (0)