Hi,

On Tue, May 23, 2017 at 10:38 PM, Fleshgrinder <p...@fleshgrinder.com> wrote:
>
> I also had a look at the GitHub discussion, and I think that the things
> that were written there have nothing to do with your concern. The people
> commenting there simply did not understand LSP.
>

Well, here's one who doesn't claim to fully understand LSP -> Me

I'm trying, but fail to find a source that says replacing stdClass
with mixed/any/etc is ok. Every (re)definition and example talks about
substituting *objects* with their subtypes, and one particular source*
even explicitly defines what is considered a subtype.
The RFC is very much lacking in details and I can only assume, by the
above logic, that it considers "mixed" a subtype of ... everything?
What am I missing?

* http://www.engr.mun.ca/~theo/Courses/sd/5895-downloads/sd-principles-3.ppt.pdf

Cheers,
Andrey.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to