Re: Inconsistencies between parameter number and index when reflecting a method/function

From: Date: Fri, 03 May 2024 06:50:36 +0000
Subject: Re: Inconsistencies between parameter number and index when reflecting a method/function
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-123259@lists.php.net to get a copy of this message
> Le 2 mai 2024 à 14:48, Ollie Read <php@ollie.codes> a écrit : > > The question that is holding this PR back is should these methods be 1 indexed, so that the > provided position is consistent with the error messages, or how a person would typically count, or > should they be 0 indexed to remain consistent with the existing API. > It ought to be consistent with the existing reciprocal method ReflectionParameter::getPosition(), which returns 0 for parameter #1. —Claude

« previous php.internals (#123259) next »