Skip to content

Commit 0b80858

Browse files
committed
fix arginfo
1 parent 1861fc2 commit 0b80858

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

git2_reference.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ static PHP_METHOD(Reference, lookup_name) {
4545
}
4646
}
4747

48+
ZEND_BEGIN_ARG_INFO_EX(arginfo_reference_dwim, 0, 0, 2)
49+
ZEND_ARG_OBJ_INFO(0, repository, Git2\\Repository, 0)
50+
ZEND_ARG_INFO(0, name)
51+
ZEND_END_ARG_INFO()
52+
4853
static PHP_METHOD(Reference, dwim) {
4954
zval *z_repo;
5055
git_repository *repo;
@@ -213,7 +218,7 @@ static void php_git2_reference_free_object(zend_object *object TSRMLS_DC) {
213218

214219
static zend_function_entry git2_reference_methods[] = {
215220
PHP_ME(Reference, lookup_name, arginfo_reference_lookup_name, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
216-
PHP_ME(Reference, dwim, arginfo_reference_lookup_name, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
221+
PHP_ME(Reference, dwim, arginfo_reference_dwim, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
217222
PHP_ME(Reference, name, arginfo_reference_name, ZEND_ACC_PUBLIC)
218223
PHP_ME(Reference, is_branch, arginfo_reference_is_branch, ZEND_ACC_PUBLIC)
219224
PHP_ME(Reference, is_remote, arginfo_reference_is_remote, ZEND_ACC_PUBLIC)

0 commit comments

Comments
 (0)