Fix description of ReflectionParameter::getPosition() (GH-16738)

Appears to have been copied from `ReflectionParameter::isOptional()`.

[skip ci]
This commit is contained in:
DanielEScherzer 2024-11-09 06:32:53 -08:00 committed by GitHub
parent 07d4c541cb
commit 54003aecc4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2827,7 +2827,7 @@ ZEND_METHOD(ReflectionParameter, getAttributes)
param->fptr->type == ZEND_USER_FUNCTION ? param->fptr->op_array.filename : NULL); param->fptr->type == ZEND_USER_FUNCTION ? param->fptr->op_array.filename : NULL);
} }
/* {{{ Returns whether this parameter is an optional parameter */ /* {{{ Returns the index of the parameter, starting from 0 */
ZEND_METHOD(ReflectionParameter, getPosition) ZEND_METHOD(ReflectionParameter, getPosition)
{ {
reflection_object *intern; reflection_object *intern;