Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98757 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45291 invoked from network); 10 Apr 2017 11:04:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Apr 2017 11:04:38 -0000 Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.220 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.220 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.220] ([81.169.146.220:29006] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6E/A2-22499-3C66BE85 for ; Mon, 10 Apr 2017 07:04:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1491822273; l=4082; s=domk; d=kelunik.com; h=Content-Type:Cc:To:Subject:Date:From:References:In-Reply-To: MIME-Version; bh=py0gT9BHWiFARjyNNybSx+ZK/hfBR0vp7x2eHkffni8=; b=M+qWPTlvqkbg6E3eEsOwsRJ0YKcrTQNpvp02pvggXY1NRAjX8QZ4VWv/r0i1xypGTd zBQ2SIZ324LWZxBHvBdcpXONXBm26bV54YT0C2z/i+EtyLEyMRB5pru9XP2xWLBC3Ven vnSEyfdZ8oQKvNY2d2y6CdoU7nYgDfSd54ArQ= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLDup6E67mzuoNJBqDwsMA= X-RZG-CLASS-ID: mo00 Received: by mail-qt0-f180.google.com with SMTP id i34so101088908qtc.0 for ; Mon, 10 Apr 2017 04:04:32 -0700 (PDT) X-Gm-Message-State: AFeK/H13016wqRBhGsE3fhGegiFPVRnch9jcr3Yhuv/mzY+YWhmT+dsxdLFA9mHXLHvE/PPwiNoEdMLl3wdydA== X-Received: by 10.237.32.240 with SMTP id 103mr52730350qtb.93.1491822272067; Mon, 10 Apr 2017 04:04:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.144.167 with HTTP; Mon, 10 Apr 2017 04:04:31 -0700 (PDT) In-Reply-To: References: Date: Mon, 10 Apr 2017 13:04:31 +0200 X-Gmail-Original-Message-ID: Message-ID: To: Patrick ALLAERT Cc: Wes , PHP Internals Content-Type: multipart/alternative; boundary=94eb2c0c5c72983d7b054ccdf0f1 Subject: Re: [PHP-DEV][RFC][VOTE] Allow abstract function override From: me@kelunik.com (Niklas Keller) --94eb2c0c5c72983d7b054ccdf0f1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2017-04-10 11:34 GMT+02:00 Patrick ALLAERT : > Le mar. 28 mars 2017 =C3=A0 06:51, Wes a =C3=A9crit= : > > > Hello PHPeeps, > > > > There hasn't been much discussion around the proposed feature, and I've > > interpreted it as a good sign :P It is not a super important change but > it > > has some advantages, it's consistent with the recent improvements to ty= pe > > variance and also with future ones. Also, it's hopefully not too hard t= o > > implement. > > > > https://wiki.php.net/rfc/allow-abstract-function-override > > > > I've decided to start the vote. It will end two weeks from this message= , > on > > 10th April 2017. > > > > Thanks in advance for participating. > > > > Wes > > > > Hello, > > Voted "no" because the RFC starts with: > > " > PHP 7 introduced type declarations for return and improved ones for > parameters. They currently support a very limited kind of variance (only = to > no-type): > > class A { function bar(stdClass $x){} } > class B extends A { function bar($x): stdClass{} } > " > > Which looks false in both PHP 7.0 and PHP 7.1. > > Sorry if I missed something in a past discussions, but it looks wrong to = me > to implement anything based on a false assertion. > > I would be happy to change my vote if you can fix the RFC and/or enlight > me. > > Cheers, > Patrick > It's implemented in PHP 7.2 (master). Regards, Niklas --94eb2c0c5c72983d7b054ccdf0f1--