Hey Midori, <http://ocramius.github.com/>
On Tue, Feb 4, 2020 at 11:35 AM Midori Koçak <mtko...@gmail.com> wrote: > Marco, I've read it and your argument is strong. I think my opinion > slightly moves towards Andreas, away from magic. > > here is something I wrote some days ago: > https://github.com/midorikocak/arraytools/blob/master/src/ArrayConvertableTrait.php > > I guess you were saying something like this would be enough. > > Midori > > Correct: an explicit `$foo->toArray()` call suffices. For other readers, more about `$foo->toArray()` vs `(array) $foo` is described at https://github.com/ShittySoft/symfony-live-berlin-2018-doctrine-tutorial/pull/3#issuecomment-460441229 Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/