Skip to content

Update ext/tokenizer param names #6232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ext/tokenizer/tokenizer.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

/** @generate-function-entries */

function token_get_all(string $source, int $flags = 0): array {}
function token_get_all(string $code, int $flags = 0): array {}

function token_name(int $token): string {}
function token_name(int $id): string {}

class PhpToken implements Stringable
{
Expand Down
11 changes: 4 additions & 7 deletions ext/tokenizer/tokenizer_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: d8e8b4d749c2960b33fd20b27a1abf033604d4e2 */
* Stub hash: ef39f4efec05a3ebc5cf56a6b26e01369f00d129 */

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_token_get_all, 0, 1, IS_ARRAY, 0)
ZEND_ARG_TYPE_INFO(0, source, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, code, IS_STRING, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_token_name, 0, 1, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, token, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, id, IS_LONG, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_PhpToken_getAll, 0, 1, IS_ARRAY, 0)
ZEND_ARG_TYPE_INFO(0, code, IS_STRING, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
ZEND_END_ARG_INFO()
#define arginfo_class_PhpToken_getAll arginfo_token_get_all

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PhpToken___construct, 0, 0, 2)
ZEND_ARG_TYPE_INFO(0, id, IS_LONG, 0)
Expand Down