On Fri, 15 Feb 2013, Sanford Whiteman wrote: > I think it was done to ease adoption even though it was known to > violate LSP. To quote Stas, "As for established practice, everybody > expects DateTime, so IMHO we should leave DateTime as base class even > though it's not strictly OO-pure." > > This way does let users sub in DateTimeImmutable more easily and patch > over a ton of unintended -- maybe not even fully noted or understood > -- defects in their apps? I dunno.
Yes, that's exactly the idea. cheers, Derick -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php