Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80477 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26600 invoked from network); 14 Jan 2015 19:04:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jan 2015 19:04:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=marcio.web2@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=marcio.web2@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.42 as permitted sender) X-PHP-List-Original-Sender: marcio.web2@gmail.com X-Host-Fingerprint: 209.85.215.42 mail-la0-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:41563] helo=mail-la0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2C/27-19120-BCDB6B45 for ; Wed, 14 Jan 2015 14:04:44 -0500 Received: by mail-la0-f42.google.com with SMTP id gd6so9875031lab.1 for ; Wed, 14 Jan 2015 11:04:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=bQxU712Bq+3tBn0qN1g9o/2JAa/ZiCLzzHS5xAI6QHs=; b=UknlWmTzMv4AlwhAfRJIJUn+/9WTpAnVJiGobkxyYQANRKo4cNwTF3EMzd5aOHTUsH GN7M2bMFaHr8DK6j1S0dSn7ID3e+yLqF6h4NgDTVuSf9ugErAqu24lArYHW9/YmQixEi 2RlU4EevKoUa12mhvEQsMcKO8pgKWSOytQRW1qPHgYs3nYRjFnbHXTuhW3wrMbdUdHgb F6x04mS0omQ3VpKMQgjm/Ctd/nyEZqqzGOOGxcyuwM6aETY4eqQDUkbI2UUVyxT+3+y+ Qr0OCpaaHoJMKyaguHJjEp3DADfdM+JLr7NFPplLo1Me9yQ6/tATSmEi8XYXhjee3++j qjCg== X-Received: by 10.152.23.164 with SMTP id n4mr5461573laf.77.1421262280874; Wed, 14 Jan 2015 11:04:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.152.21.101 with HTTP; Wed, 14 Jan 2015 11:04:20 -0800 (PST) Reply-To: marcio3w@gmail.com In-Reply-To: References: Date: Wed, 14 Jan 2015 16:04:20 -0300 Message-ID: To: Levi Morrison Cc: internals Content-Type: multipart/alternative; boundary=089e0160b8a6626297050ca1699e Subject: Re: [PHP-DEV] [RFC][Vote] Return Types From: marcio.web2@gmail.com (Marcio Almada) --089e0160b8a6626297050ca1699e Content-Type: text/plain; charset=UTF-8 Hi Levi, It's nice to see this RFC in voting phase again so quickly :) I just have one question. Since we had some changes in the implementation will the previous votes be discarded? 2015-01-14 6:18 GMT-03:00 Levi Morrison : > Dear Internals, > > I have moved the Return Types RFC[1] into voting phase. A few changes > have happened since it was originally announced but have been covered > by discussion. > > Return types are now invariant. This means a sub-type must declare the > same return type as its super-type's method when overriding it. > Aliases such as self and parent must resolve to the same type. > > Also note that picking invariance now does not mean we can't support > covariance later. This decision was a trade-off of my time and the > projected timeline for PHP 7. I was not confident I could produce an > excellent design and implementation in time for PHP 7 if I chose > covariance instead. > > There is no reflection support for return types; another RFC[2] will > handle this. > > Dmitry updated a sizeable chunk of the implementation[3] to work on > much more recent master branch. Thanks, Dmitry. I have updated it to > work on the latest master version as of the time of this writing and > altered one or two things to bring it into line with the RFC. > > The voting period will end during the evening of 2015-01-23 in UTC-7. > This period is around ten days, which I hope is enough time for > everyone to be able to vote. > > [1]: https://wiki.php.net/rfc/return_types#vote > [2]: https://wiki.php.net/rfc/reflectionparameter.typehint > [3]: https://github.com/php/php-src/pull/997 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --089e0160b8a6626297050ca1699e--