diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-04-03 16:49:11 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-04-03 17:59:30 +0200 |
commit | 2bcc4ab8f4422f319b509b8fd5bd251d9326c604 (patch) | |
tree | 689f8ba253cc8b4b43454ce70270e0cd0ae69e40 /ext/zend_test | |
parent | d2c92d7fd326b011b509b6daedee5f4e035fcae1 (diff) | |
download | php-git-2bcc4ab8f4422f319b509b8fd5bd251d9326c604.tar.gz |
Verify that all stubs have a return type
Diffstat (limited to 'ext/zend_test')
-rw-r--r-- | ext/zend_test/test.stub.php | 2 | ||||
-rw-r--r-- | 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 b823116742..85c733ad3c 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) {} +function zend_terminate_string(string &$str): string {} /** @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 89a72f63ae..e0cb219e37 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_INFO_EX(arginfo_zend_terminate_string, 0, 0, 1) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_terminate_string, 0, 1, IS_STRING, 0) ZEND_ARG_TYPE_INFO(1, str, IS_STRING, 0) ZEND_END_ARG_INFO() |