Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78845 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50666 invoked from network); 7 Nov 2014 15:52:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Nov 2014 15:52:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=lars@strojny.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lars@strojny.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain strojny.net from 46.4.40.248 cause and error) X-PHP-List-Original-Sender: lars@strojny.net X-Host-Fingerprint: 46.4.40.248 milch.schokokeks.org Received: from [46.4.40.248] ([46.4.40.248:47517] helo=milch.schokokeks.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E4/81-38250-7BAEC545 for ; Fri, 07 Nov 2014 10:52:25 -0500 Received: from [192.168.41.106] (v100.nfq.lt [::ffff:88.119.140.100]) (AUTH: PLAIN lars@schokokeks.org, SSL: TLSv1/SSLv3,256bits,ECDHE-RSA-AES256-SHA) by milch.schokokeks.org with ESMTPSA; Fri, 07 Nov 2014 16:52:20 +0100 id 0000000000000028.00000000545CEAB4.00001D42 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) In-Reply-To: Date: Fri, 7 Nov 2014 17:52:18 +0200 Content-Transfer-Encoding: quoted-printable Message-ID: <144731A6-5A21-4220-9C03-6DC2BBB3C63B@strojny.net> References: To: internals X-Mailer: Apple Mail (2.1990.1) Subject: Re: [PHP-DEV] [RFC][Vote Cancellation] Return Types From: lars@strojny.net (Lars Strojny) Hi Levi, thanks for doing "the right thing"[tm] and cancelling the vote to open = up the discussion. > On 07 Nov 2014, at 17:20, Levi Morrison wrote: [...] > If these were split into separate files and autoloaded > the current solution would work. >=20 > class A { > function foo(): B {} > } > class B extends A { > function foo(): C {} > } > class C extends B { > function foo(): C {} > } I could see us documenting the behaviour as an existing limitation as I = would guess that it will not be a huge issue in real life most likely = anyway because of composer and PSR-1/PSR-4. cu, Lars=