Re: [RFC] Union Types v2
| From: | Arnold Daniels | Date: | Wed, 04 Sep 2019 11:30:03 +0000 |
| Subject: | Re: [RFC] Union Types v2 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-106849@lists.php.net to get a copy of this message | ||
Instead of using
__toString as type maybe it's better to introduce a
Stringable interface, similar to how __wakeup and __sleep are
already superseded by Serializable. Of course __toString would still
continue to work (for bc), but isn't usable for type hinting.
[Arnold Daniels - Chat @
Spike](https://www.spikenow.com/?ref=spike-organic-signature&_ts=5acb3) [5acb3]
On September 4, 2019 at 9:59 GMT, Nicolas Grekas <nicolas.grekas+php@gmail.com> wrote: