Skip to content

Commit 0043bd2

Browse files
committed
Regenerate and fix Closure stub
1 parent 005ad30 commit 0043bd2

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

Zend/zend_closures.stub.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ function bindTo(?object $newthis, $newscope = UNKNOWN) {}
1212

1313
function call(object $newthis, ...$parameters) {}
1414

15-
/** @return Closure */
16-
function fromCallable(callable $callable) {}
15+
/**
16+
* @param callable $callable
17+
* @return Closure
18+
*/
19+
function fromCallable($callable) {}
1720
}

Zend/zend_generators_arginfo.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
/* This is a generated file, edit the .stub.php file instead. */
22

3-
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Generator_rewind, 0, 0, 0)
3+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Generator_rewind, 0, 0, IS_VOID, 0)
44
ZEND_END_ARG_INFO()
55

6-
#define arginfo_class_Generator_valid arginfo_class_Generator_rewind
6+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Generator_valid, 0, 0, _IS_BOOL, 0)
7+
ZEND_END_ARG_INFO()
78

8-
#define arginfo_class_Generator_current arginfo_class_Generator_rewind
9+
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Generator_current, 0, 0, 0)
10+
ZEND_END_ARG_INFO()
911

10-
#define arginfo_class_Generator_key arginfo_class_Generator_rewind
12+
#define arginfo_class_Generator_key arginfo_class_Generator_current
1113

1214
#define arginfo_class_Generator_next arginfo_class_Generator_rewind
1315

@@ -19,4 +21,4 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Generator_throw, 0, 0, 1)
1921
ZEND_ARG_OBJ_INFO(0, exception, Throwable, 0)
2022
ZEND_END_ARG_INFO()
2123

22-
#define arginfo_class_Generator_getReturn arginfo_class_Generator_rewind
24+
#define arginfo_class_Generator_getReturn arginfo_class_Generator_current

0 commit comments

Comments
 (0)