# [VOTE] Allow throwing exceptions from __toString()

- Thread: https://externals.io/message/105776
- Original archive: https://news-web.php.net/php.internals/105776
- Started by Nikita Popov on 2019-05-22T13:44:53+00:00
- Messages: 3
- RFC: Allow throwing exceptions from __toString() (Implemented (PHP 7.4)) — https://externals.io/rfc/tostring_exceptions.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

---

## #105776 — Nikita Popov — 2019-05-22T13:44:53+00:00

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

Hi internals,

I've opened voting on the __toString() exceptions RFC:
https://wiki.php.net/rfc/tostring_exceptions

The vote will be open until 2019-06-05. See
https://externals.io/message/105515 for the related discussion.

Regards,
Nikita

---

## #105777 — johannes@schlueters.de — 2019-05-22T16:09:34+00:00

URL: https://externals.io/message/105776#105777

> Hi internals,
> 
> I've opened voting on the __toString() exceptions RFC:
> https://wiki.php.net/rfc/tostring_exceptions

I raised some concerns as this can lead to subtle bugs. I however want
to publicly applaud you for the effort and dedication behind this and
the work trying to find the edge cases!

johannes

---

## #105842 — Nikita Popov — 2019-06-05T10:22:13+00:00

URL: https://externals.io/message/105776#105842

> Hi internals,
>
> I've opened voting on the __toString() exceptions RFC:
> https://wiki.php.net/rfc/tostring_exceptions
>
> The vote will be open until 2019-06-05. See
> https://externals.io/message/105515 for the related discussion.
>

I'm happy to announce that this RFC has passed unanimously, with 42 votes
in favor.

Nikita
