Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80485 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40602 invoked from network); 14 Jan 2015 20:08:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jan 2015 20:08:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.181 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.214.181 mail-ob0-f181.google.com Received: from [209.85.214.181] ([209.85.214.181:53275] helo=mail-ob0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 96/1A-19120-EBCC6B45 for ; Wed, 14 Jan 2015 15:08:30 -0500 Received: by mail-ob0-f181.google.com with SMTP id gq1so9947499obb.12 for ; Wed, 14 Jan 2015 12:08:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=y2WumgrSQF35ajvvBhP8tI3Ezt3kUeE3uSwI7FotYVw=; b=ThRKUXAsZd5SqCUMjHCA7jE+QH+s81QJrc9uDdTPskm6pX706XDTpQY3Tz2b+MYIb8 HY55fzkzbnWaCAaLK75t7qwAn2MqDwRUSgCkZkF5RtYbHloIlSiSgv1C27jACaTJHUvQ CveE9zbHC0ntqmGFoa9uNZ8Ql9jQxq+yr2r/04FoOLvXz2ZQbUA4ECQc3hGCGytyyL0H 3QnzOBNdoL/HRjM0w7Ac/MAwbxI2Ub271NC3MMWEEfIRTXpKcbgfcHQLEkLpRzf+BQPq IJNZ3Fd3ryt/FZiurUgoFq+U30WIKO7Y6CNUlDfyJrWEJ3k1jG6ayEcgvrB4LFhgug89 1GPg== MIME-Version: 1.0 X-Received: by 10.202.12.72 with SMTP id 69mr3425871oim.50.1421266106596; Wed, 14 Jan 2015 12:08:26 -0800 (PST) Sender: morrison.levi@gmail.com Received: by 10.76.103.101 with HTTP; Wed, 14 Jan 2015 12:08:26 -0800 (PST) In-Reply-To: References: Date: Wed, 14 Jan 2015 13:08:26 -0700 X-Google-Sender-Auth: tC4utKflREft90we5qNrU4ZTbl4 Message-ID: To: marcio3w@gmail.com Cc: internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC][Vote] Return Types From: levim@php.net (Levi Morrison) On Wed, Jan 14, 2015 at 12:04 PM, Marcio Almada wrote: > 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 The previous votes were discarded, yes.