Skip to content

Commit 54003ae

Browse files
Fix description of ReflectionParameter::getPosition() (phpGH-16738)
Appears to have been copied from `ReflectionParameter::isOptional()`. [skip ci]
1 parent 07d4c54 commit 54003ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/reflection/php_reflection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2827,7 +2827,7 @@ ZEND_METHOD(ReflectionParameter, getAttributes)
28272827
param->fptr->type == ZEND_USER_FUNCTION ? param->fptr->op_array.filename : NULL);
28282828
}
28292829

2830-
/* {{{ Returns whether this parameter is an optional parameter */
2830+
/* {{{ Returns the index of the parameter, starting from 0 */
28312831
ZEND_METHOD(ReflectionParameter, getPosition)
28322832
{
28332833
reflection_object *intern;

0 commit comments

Comments
 (0)