Re: [VOTE] Object-based token_get_all() alternative

From: Date: Tue, 10 Mar 2020 14:53:41 +0000
Subject: Re: [VOTE] Object-based token_get_all() alternative
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-108952@lists.php.net to get a copy of this message
On Tue, Mar 10, 2020 at 12:36 PM Côme Chilliet < come.chilliet@fusiondirectory.org> wrote: > Hello, > > I know I’m late, but shouldn't these tokens have a __toString() method? > It’s not listed in rejected features. > Would __toString() return $token->text? I'm not strictly opposed to this, but I'd be hard pressed to think of a situation where I would prefer writing (string) $token over $token->text. Generally, the less magic the better :) Nikita

« previous php.internals (#108952) next »