Re: [RFC - discussion] __toArray()

From: Date: Thu, 06 Feb 2020 19:03:53 +0000
Subject: Re: [RFC - discussion] __toArray()
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-108416@lists.php.net to get a copy of this message
> > On Feb 6, 2020 at 7:06 AM, <Nikita Popov (mailto:nikita.ppv@gmail.com)> wrote: > > While there are quite a few places where objects can be implicitly > > converted to strings (say echo, concatenation, etc), there are not > > a lot of places where objects can be implicitly converted to array. > > A quick grep has around 500 string conversions in the codebase, > > and 20 array conversions. > > > Out of curiosity, what did you grep for in both cases? Were those string conversions done with casting to string? -Mike > > > >

« previous php.internals (#108416) next »