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

- Thread: https://externals.io/message/131212
- Original archive: https://news-web.php.net/php.internals/131212
- Started by Daniel Scherzer on 2026-06-12T16:04:38+00:00
- Messages: 5
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #131212 — Daniel Scherzer — 2026-06-12T16:04:38+00:00

URL: https://externals.io/message/131212#131212

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

---

## #131213 — Larry Garfield — 2026-06-12T16:35:34+00:00

URL: https://externals.io/message/131212#131213 · In reply to: #131212

> 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

---

## #131214 — Marco Pivetta — 2026-06-12T16:44:38+00:00

URL: https://externals.io/message/131212#131214 · In reply to: #131213

> 
> > […]
>
> 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/

---

## #131224 — kontakt@beberlei.de — 2026-06-12T20:49:41+00:00

URL: https://externals.io/message/131212#131224 · In reply to: #131213

Am 12.06.2026, 18:35:34 schrieb Larry Garfield <larry@garfieldtech.com>:

> 
>
> 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.

---

## #131394 — Daniel Scherzer — 2026-06-18T23:58:27+00:00

URL: https://externals.io/message/131212#131394 · In reply to: #131212

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
