[PHP-DEV] [VOTE] RFC: Add ReflectionAttribute::getCurrent()

Hi internals,

Voting is now open for this RFC.

Voting will end 2026-06-26 at end-of-day UTC.

-Daniel

On Fri, Jun 12, 2026, at 11:04 AM, Daniel Scherzer wrote:

Hi internals,

Voting is now open for this RFC.

* RFC: PHP: rfc:reflectionattribute-getcurrent
* Discussion thread: php.internals: [RFC] [Discussion] Add ReflectionAttribute::getCurrent()

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/

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.

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.