From 701f3a1af67029a1d953ca054f33385be32c7f4a Mon Sep 17 00:00:00 2001 From: haszi Date: Tue, 9 Jan 2024 14:43:44 +0100 Subject: [PATCH] Mark ob_start callback parameter nullable --- ext/standard/basic_functions.stub.php | 2 +- ext/standard/basic_functions_arginfo.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/standard/basic_functions.stub.php b/ext/standard/basic_functions.stub.php index be9b024258e..3bdc3827b4d 100755 --- a/ext/standard/basic_functions.stub.php +++ b/ext/standard/basic_functions.stub.php @@ -1513,7 +1513,7 @@ function header_register_callback(callable $callback): bool {} /* main/output.c */ -/** @param callable $callback */ +/** @param callable|null $callback */ function ob_start($callback = null, int $chunk_size = 0, int $flags = PHP_OUTPUT_HANDLER_STDFLAGS): bool {} function ob_flush(): bool {} diff --git a/ext/standard/basic_functions_arginfo.h b/ext/standard/basic_functions_arginfo.h index 99e08feddf5..1361cf60627 100644 --- a/ext/standard/basic_functions_arginfo.h +++ b/ext/standard/basic_functions_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 7389d094a842a2289cd32cb37386e5e40ea7e031 */ + * Stub hash: 2a3d8da0b92134dcca74f2ac70454bd27768f20e */ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_set_time_limit, 0, 1, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0)