Skip to content

Commit 69ab17c

Browse files
committed
Convert fallthrough comment to pseudo-keyword in JSON extension
1 parent 7dba410 commit 69ab17c

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
@@ -565,6 +565,7 @@ int php_json_encode_zval(smart_str *buf, zval *val, int options, php_json_encode
565565
return php_json_encode_serializable_object(buf, val, options, encoder);
566566
}
567567
/* fallthrough -- Non-serializable object */
568+
fallthrough;
568569
case IS_ARRAY: {
569570
/* Avoid modifications (and potential freeing) of the array through a reference when a
570571
* jsonSerialize() method is invoked. */

0 commit comments

Comments
 (0)