Skip to content

Commit

Permalink
Fix stub for zend_terminate_string()
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Apr 3, 2020
1 parent 2bcc4ab commit 02a685e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ext/zend_test/test.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
Expand Down
2 changes: 1 addition & 1 deletion ext/zend_test/test_arginfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 02a685e

Please sign in to comment.