Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99204 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19578 invoked from network); 26 May 2017 15:36:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 May 2017 15:36:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 209.85.192.180 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 209.85.192.180 mail-pf0-f180.google.com Received: from [209.85.192.180] ([209.85.192.180:33394] helo=mail-pf0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5C/E5-10292-56B48295 for ; Fri, 26 May 2017 11:36:08 -0400 Received: by mail-pf0-f180.google.com with SMTP id e193so14899594pfh.0 for ; Fri, 26 May 2017 08:36:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=yNhgUXB5Ql41B6Iyfu5LSvNAEMfU/hdzu+UQmMYF7M8=; b=DrJjd91mTPjYpRj+sHaXj/tLVDN4MxsqLy0w/e+vSAW8J0CyCBDqKLoSAXMIw24ca9 CN4Ly2gbbWTQuDblOmxdcPX4BZ4TMsgp6OnbV52p1uNbHiibSL6DhBo8Kn6JOuMzxrP/ 431aQqvOcBOttQJYq7lJAieWK6rftm0YHVDjOJbkG2UbB4Gxt9p2WZRGOFg7D+O9kQNG jxn2ZdoXGLecY6uy4gwx8tX8Gu26cAsWyeCQdBMFgCW72UiPud66wpKDL4L21nSrtONS iDl/hJqg99OCuebjJWv5PSUC75ZD/qOjpx6geGRKMhaojAkxuuPpkKR8SM70TagnBxK3 VdRA== 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=yNhgUXB5Ql41B6Iyfu5LSvNAEMfU/hdzu+UQmMYF7M8=; b=lLjHFs5S1Z58wCg6L0uqSLqWIINXnj00R/T94NMaK9Ur0NqJa30xMaqPDOymd6elaF Wc9hN2I+6/w6VuCCUsCfsVYQ5zVlEf2Q/z/67zNphJo86+uxuncUvXAwK7L4nz9EXpS0 kEucIWs2WcoVyGCUdpBXw3FS3JBHL0W/UFVJvtfiXhUsOZ41tYbhxC9SCe3iPkXu4Ymq qpgJHbGTDIAi3qMPjRt7h/6ZBUVyXnnlcLTSKlRHYATSyo7613MPAn5ZsG6SplSnUhCF Mols7jkPsIfGxUCmvm3JMyus7xKNVkl0R2drbqon5TDrkotm0BHwIAk51V1gsEWs8wfT 14FA== X-Gm-Message-State: AODbwcAYWUZaLqlE7an0bD+dLWBcKbVwj6xbqJDI8O4hplZj4c2lMUw6 cRc26FAsM49mpFen3b3fxLRKpPWfNI5gGgYExw== X-Received: by 10.98.14.86 with SMTP id w83mr2698585pfi.83.1495808782646; Fri, 26 May 2017 07:26:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.151.163 with HTTP; Fri, 26 May 2017 07:26:22 -0700 (PDT) X-Originating-IP: [81.143.203.71] In-Reply-To: <35177214-db24-5bc8-2020-37b2951259a2@rhsoft.net> References: <269187f4-5924-a7cc-9163-40134546451f@fleshgrinder.com> <2dca6983-bbde-6042-6608-a593df2e85ed@gmx.de> <35177214-db24-5bc8-2020-37b2951259a2@rhsoft.net> Date: Fri, 26 May 2017 15:26:22 +0100 Message-ID: To: "lists@rhsoft.net" Cc: "internals@lists.php.net" Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Parameter type widening RFC From: danack@basereality.com (Dan Ackroyd) On 26 May 2017 at 13:23, lists@rhsoft.net wrote: > does that also fix the issue https://bugs.php.net/bug.php?id=74394 Dear Anonymous, That "issue" is actually 3 issues. case 1 class A { public function test($a) {} } class B extends A { public function test(string $a) { } } This breaks LSP - because B::test doesn't accept all the things that A::test can accept and so is unlikely to ever be supported. case 2 class A { public function test($a) {} } class B extends A { public function test($a): string {} } This works since return types were introduced. case 3 class A { public function test($a): string { } } class B extends A { public function test($a) {} } This breaks LSP - anything that is calling A::test would only expect a string to be returned, but B::test can return anything so is unlikely to ever be supported. btw I assume that lists@rhsoft.net and spam2 at rhsoft dot net are the same anonymous person. Quoting some of your words: spam2 at rhsoft dot net > > maybe you guys also don't see the possibility of shared-libraries used by hundrets of > applications by just use "include_path" when you talk about "deplyoment" and "2017".... > > that is not possible with a stupid fatal error lists@rhsoft.net wrote: > > frankly get out of my sight with composer > > i maintain the whole webstacke for many years at my own (rpm packages) and so the Fedora > repos have excluded anything relevant to PHP - trying to build composer by just download > the src.rpm ends in a ton of build dependencies > > we maintain a large codebase (250000 LOC) over 15 years Your tone of words is quite rude and dismissive of other people both on this list and in the bug reports. That's really not a good way to persuade people, but particularly so when you seem to not understand subtle computer science principles but instead want PHP to be customised for your own way of working. If you're installing Composer through an RPM and it's requiring you to install lots of dependencies, something has gone horribly wrong. Composer is a standalone phar executable which just needs a normal PHP environment. I'd strongly recommend having another go at using it, and in general opening yourself up to new ways of doing things rather than being rude to people who don't share your way of working. cheers Dan