Re: Re: [VOTE] Object-based token_get_all() alternative
| From: | Larry Garfield | Date: | Mon, 23 Mar 2020 16:03:35 +0000 |
| Subject: | Re: Re: [VOTE] Object-based token_get_all() alternative | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-109232@lists.php.net to get a copy of this message | ||
On Mon, Mar 23, 2020, at 9:07 AM, Nikita Popov wrote:
> On Fri, Mar 6, 2020 at 10:33 AM Nikita Popov <nikita.ppv@gmail.com> wrote:
>
> > Hi internals,
> >
> > I've opened voting on â,/�9™¾Óo0™
> > Wjhttps://wiki.php.net/rfc/token_as_object, which
> > adds a new object-based interface to the tokenizer. Voting closes on
> > 2020-03-20.
> >
>
> This RFC has been accepted unanimously, with 47 votes in favor.
>
> Based on the additional feedback in this thread, I'll also add a
> __toString() method that returns the value of $token->text, unless anyone
> has objects to that...
>
> Regards,
> Nikita
As long as __toString() is overridable in subclasses, that seems fine to me.
--Larry Garfield