# [VOTE] Stringable

- Thread: https://externals.io/message/108509
- Original archive: https://news-web.php.net/php.internals/108509
- Started by Nicolas Grekas on 2020-02-12T14:37:51+00:00
- Messages: 4
- RFC: Stringable (Implemented (PHP 8.0)) — https://externals.io/rfc/stringable.md
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #108509 — Nicolas Grekas — 2020-02-12T14:37:51+00:00

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

Hi everyone,

I happy to open the vote for the Stringable RFC:
https://wiki.php.net/rfc/stringable#vote

The vote will stay open until 2020-02-26.

Cheers,
Nicolas

---

## #108780 — Nicolas Grekas — 2020-02-27T08:49:14+00:00

URL: https://externals.io/message/108509#108780 · In reply to: #108509

Hello everyone,

I happy to open the vote for the Stringable RFC:
> https://wiki.php.net/rfc/stringable#vote
>
> The vote will stay open until 2020-02-26.
>

The proposal has been accepted with 29 "Yes" votes and 9 "No.

The vote is now closed, the RFC page updated and the PR on GitHub is ready
to merge.

Thank you!

Nicolas

---

## #108818 — Nikita Popov — 2020-03-03T09:54:17+00:00

URL: https://externals.io/message/108509#108818 · In reply to: #108780

On Thu, Feb 27, 2020 at 9:49 AM Nicolas Grekas <nicolas.grekas+php@gmail.com>
wrote:

> Hello everyone,
>
> I happy to open the vote for the Stringable RFC:
> > […]
>
> The proposal has been accepted with 29 "Yes" votes and 9 "No.
>
> The vote is now closed, the RFC page updated and the PR on GitHub is ready
> to merge.
>
> Thank you!
>
> Nicolas
>

Ironically, this broke Symfony ;)

> Fatal error: Access level to class@anonymous::__toString() must be public
(as in class Stringable) in
/home/vsts/work/1/s/symfony/src/Symfony/Component/String/Tests/LazyStringTest.php(110)
: eval()'d code on line 1


But it seems that this was already a warning before:

> Warning: The magic method __toString() must have public visibility and
cannot be static in /in/3m4Za on line 4

So it doesn't seem like a big issue in practice.

Nikita

---

## #108820 — Nicolas Grekas — 2020-03-03T10:09:48+00:00

URL: https://externals.io/message/108509#108820 · In reply to: #108818

>
> Ironically, this broke Symfony ;)
>
> > […]
> public (as in class Stringable) in
> /home/vsts/work/1/s/symfony/src/Symfony/Component/String/Tests/LazyStringTest.php(110)
> : eval()'d code on line 1
>
>
>
Indeed!
Fixed in https://github.com/symfony/symfony/pull/35935


But it seems that this was already a warning before:
>
> > […]
> cannot be static in /in/3m4Za on line 4
>
> So it doesn't seem like a big issue in practice.
>

I agree :)
