Skip to content

Commit 45c755c

Browse files
Revert "chore: unnecessary parentheses."
This reverts commit 91227c5.
1 parent a8ad5c8 commit 45c755c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext/json/json.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,8 @@ PHP_FUNCTION(json_validate)
303303
Z_PARAM_LONG(options)
304304
ZEND_PARSE_PARAMETERS_END();
305305

306-
if (options != 0 && options != PHP_JSON_INVALID_UTF8_IGNORE) {
306+
307+
if ((options != 0) && (options != PHP_JSON_INVALID_UTF8_IGNORE)) {
307308
zend_argument_value_error(3, "must be a valid flag (allowed flags: JSON_INVALID_UTF8_IGNORE)");
308309
RETURN_THROWS();
309310
}
@@ -314,7 +315,7 @@ PHP_FUNCTION(json_validate)
314315
}
315316

316317
JSON_G(error_code) = PHP_JSON_ERROR_NONE;
317-
318+
318319
if (depth <= 0) {
319320
zend_argument_value_error(2, "must be greater than 0");
320321
RETURN_THROWS();

0 commit comments

Comments
 (0)