From 41e0713a1b64f0df2464139aa2ace59f9d6dab26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Thu, 20 Nov 2025 19:23:37 +0100 Subject: [PATCH] fix: allow null for mercure_publish() retry parameter --- frankenphp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frankenphp.c b/frankenphp.c index 5e070cd3..2ad6e30c 100644 --- a/frankenphp.c +++ b/frankenphp.c @@ -514,6 +514,7 @@ PHP_FUNCTION(mercure_publish) { zend_string *data = NULL, *id = NULL, *type = NULL; zend_bool private = 0; zend_long retry = 0; + bool retry_is_null = 1; ZEND_PARSE_PARAMETERS_START(1, 6) Z_PARAM_ZVAL(topics) @@ -522,7 +523,7 @@ PHP_FUNCTION(mercure_publish) { Z_PARAM_BOOL(private) Z_PARAM_STR_OR_NULL(id) Z_PARAM_STR_OR_NULL(type) - Z_PARAM_LONG(retry) + Z_PARAM_LONG_OR_NULL(retry, retry_is_null) ZEND_PARSE_PARAMETERS_END(); if (Z_TYPE_P(topics) != IS_ARRAY && Z_TYPE_P(topics) != IS_STRING) {