Re: DateTimeInterface is not a usable interface?

From: Date: Tue, 21 Jul 2015 11:25:36 +0000
Subject: Re: DateTimeInterface is not a usable interface?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-87220@lists.php.net to get a copy of this message
I should also add that this breaking change was introduced in a patch release (5.5.8). What has happened has happened, and I don't want to blame anyone, but this is actually really broken :-\ Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 21 July 2015 at 12:14, Marco Pivetta <ocramius@gmail.com> wrote: > Hey Niktia, > > On 21 July 2015 at 11:05, Niktia Nefedov <inefedor@gmail.com> wrote: > >> There's a workaround though - it's to always call user-defined class's >> method directly from built-in functions >> > > That's not the workaround, that's the actual fix: the current fix breaks > the OO model basics by introducing a limitation in the interface, rather > than in the broken implementations. > > Greets, > > Marco Pivetta > > http://twitter.com/Ocramius > > http://ocramius.github.com/ >

« previous php.internals (#87220) next »