From 02a685ead327ce72e6e1cca76072e6ec5983c5bb Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 3 Apr 2020 18:21:40 +0200 Subject: [PATCH] Fix stub for zend_terminate_string() --- ext/zend_test/test.stub.php | 2 +- ext/zend_test/test_arginfo.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/zend_test/test.stub.php b/ext/zend_test/test.stub.php index 85c733ad3c..b75dfea9c0 100644 --- a/ext/zend_test/test.stub.php +++ b/ext/zend_test/test.stub.php @@ -20,7 +20,7 @@ function zend_test_deprecated(): void {} function zend_create_unterminated_string(string $str): string {} -function zend_terminate_string(string &$str): string {} +function zend_terminate_string(string &$str): void {} /** @param mixed $variable */ function zend_leak_variable($variable): void {} diff --git a/ext/zend_test/test_arginfo.h b/ext/zend_test/test_arginfo.h index e0cb219e37..71f94d6d14 100644 --- a/ext/zend_test/test_arginfo.h +++ b/ext/zend_test/test_arginfo.h @@ -15,7 +15,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_create_unterminated_string, ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_terminate_string, 0, 1, IS_STRING, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_terminate_string, 0, 1, IS_VOID, 0) ZEND_ARG_TYPE_INFO(1, str, IS_STRING, 0) ZEND_END_ARG_INFO() -- 2.40.0