Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99176 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16335 invoked from network); 25 May 2017 14:30:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 May 2017 14:30:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=narf@devilix.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=narf@devilix.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain devilix.net designates 209.85.218.49 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.218.49 mail-oi0-f49.google.com Received: from [209.85.218.49] ([209.85.218.49:33676] helo=mail-oi0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CE/88-10292-F6AE6295 for ; Thu, 25 May 2017 10:30:07 -0400 Received: by mail-oi0-f49.google.com with SMTP id w10so282624730oif.0 for ; Thu, 25 May 2017 07:30:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devilix.net; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=db62LbUTnOxuIrwgxl+vaUFGOfY6lahZa/Y7UM1gNdk=; b=SYVmO3aDWMlwL4PewxV63q5Csz/uIkFAettDEnwbSsE0PNOKnhn0qc511OyGC6yIGx 2ldHStVTIScGO7gFm6rn0d8HDUaVW1zdrUQ/8vqu6LUHscZzL+FU65lKg3Yiu5zzDcIW oLUTDfKwHbbQrJ6gP6nBE27EVKO7Fx07Kml34= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=db62LbUTnOxuIrwgxl+vaUFGOfY6lahZa/Y7UM1gNdk=; b=Hi8vkpXTKxC4WGr3qi9LSOyaw+gRQNfns3190wIk7WvHw71/fMN9mSFp3gNo+cvKpI a4ibVCpPALdAO3bGY/WPu52E34NwkdGn3sFbxtiqY5Gy/FEO3VZO7NxK4Nxj8DUiKA0X kglINhpSt0bVP9QWIgIKgdKZkhjqHiew4otAY8kmIT9sc9B8pbZF/kkmbqmoC04FCodk QVkGZywmjsmahE7W6yDcB41d9eNJXtRDDUQCjSitgVyXUpP3iTrAWTlUFDfqAJ+NIWSu XAUkqxZIj7nClFHBsB/wk2hW3b4IDEBsz+iOAWSgRrm5kjtIcMZV/z8W7MyCjGxIb4tv /l9w== X-Gm-Message-State: AODbwcDQ5ZsRAes8/M6Etnwn4FTTyKXLHl/PSOrE6Swg8O4XhaXJKvtO JeDrAfRR9a6eXccJVnfgzPLKvBD86YZkACTUIQ== X-Received: by 10.202.0.4 with SMTP id 4mr19097645oia.8.1495722604617; Thu, 25 May 2017 07:30:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.110.7 with HTTP; Thu, 25 May 2017 07:30:03 -0700 (PDT) In-Reply-To: <269187f4-5924-a7cc-9163-40134546451f@fleshgrinder.com> References: <269187f4-5924-a7cc-9163-40134546451f@fleshgrinder.com> Date: Thu, 25 May 2017 17:30:03 +0300 Message-ID: To: "internals@lists.php.net" Cc: Rasmus Schultz Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Parameter type widening RFC From: narf@devilix.net (Andrey Andreev) Hi, On Tue, May 23, 2017 at 10:38 PM, Fleshgrinder 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.