[VOTE] RFC: Add ReflectionAttribute::getCurrent()

php.internals

Daniel Scherzer

81 days ago
Hi internals, Voting is now open for this RFC. * RFC: https://wiki.php.net/rfc/reflectionattribute-getcurrent * Discussion thread: https://news-web.php.net/php.internals/130766 Voting will end 2026-06-26 at end-of-day UTC. -Daniel

Larry Garfield

81 days ago
On Fri, Jun 12, 2026, at 11:04 AM, Daniel Scherzer wrote:
> Hi internals, > > Voting is now open for this RFC. > > * RFC: https://wiki.php.net/rfc/reflectionattribute-getcurrent > * Discussion thread: https://news-web.php.net/php.internals/130766 > > Voting will end 2026-06-26 at end-of-day UTC. > > -Daniel
For those voting No on this, would you accept the "automatic setter injection interface" alternative? (That would still work for the original goal of the RFC.) --Larry Garfield

Marco Pivetta

81 days ago
On Fri, 12 Jun 2026 at 18:36, Larry Garfield <larry@garfieldtech.com> wrote:
> On Fri, Jun 12, 2026, at 11:04 AM, Daniel Scherzer wrote: > > Hi internals, > > > > Voting is now open for this RFC. > > > > * RFC: https://wiki.php.net/rfc/reflectionattribute-getcurrent > > * Discussion thread: https://news-web.php.net/php.internals/130766 > > > > Voting will end 2026-06-26 at end-of-day UTC. > > > > -Daniel > > For those voting No on this, would you accept the "automatic setter > injection interface" alternative? (That would still work for the original > goal of the RFC.) > > --Larry Garfield >
Yes, it would still be a terrible API, but it wouldn't suffer from the static/irreplaceable nature of this RFC Marco Pivetta https://mastodon.social/@ocramius https://ocramius.github.io/

Benjamin Eberlei

80 days ago
Am 12.06.2026, 18:35:34 schrieb Larry Garfield <larry@garfieldtech.com>:
> On Fri, Jun 12, 2026, at 11:04 AM, Daniel Scherzer wrote: > > Hi internals, > > > Voting is now open for this RFC. > > > * RFC: https://wiki.php.net/rfc/reflectionattribute-getcurrent > > * Discussion thread: https://news-web.php.net/php.internals/130766 > > > Voting will end 2026-06-26 at end-of-day UTC. > > > -Daniel > > > For those voting No on this, would you accept the "automatic setter > injection interface" alternative? (That would still work for the original > goal of the RFC.) > > --Larry Garfield >
I would vote yes on interface + setter injection during newInstance.

Daniel Scherzer

74 days ago
On Fri, Jun 12, 2026 at 9:04 AM Daniel Scherzer <daniel.e.scherzer@gmail.com> wrote:
> Hi internals, > > Voting is now open for this RFC. > > * RFC: https://wiki.php.net/rfc/reflectionattribute-getcurrent > * Discussion thread: https://news-web.php.net/php.internals/130766 > > Voting will end 2026-06-26 at end-of-day UTC. > > -Daniel >
Hi again, Given the current status (4 votes in favor, 7 against, 8 abstentions) and the feedback I've gotten both on and off list, I'm going to cancel the vote and rework this significantly. -Daniel