Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103040 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38959 invoked from network); 4 Aug 2018 11:04:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Aug 2018 11:04:42 -0000 Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.15.15 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.15.15 mout.gmx.net Received: from [212.227.15.15] ([212.227.15.15:45719] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 89/F0-28158-448856B5 for ; Sat, 04 Aug 2018 07:04:39 -0400 Received: from [192.168.2.102] ([87.167.201.185]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Lh7sF-1gFnqW1TLr-00oWil; Sat, 04 Aug 2018 13:04:19 +0200 To: =?UTF-8?Q?Pedro_Magalh=c3=a3es?= Cc: PHP internals References: <23921b52-76a1-f578-cf1d-568095c8a343@gmx.de> X-Mozilla-News-Host: news://news.php.net Message-ID: Date: Sat, 4 Aug 2018 13:04:18 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:wHkpm4x6zrfnvEnj0BHlaXasZrWzBAW9QdhD4EuWTbmkpv8Jons JMQADqjkPYNYlrTwBT1xZpJ3APrJD5O4/NNym7R0wQ/DOnlTe+F+/D+2AU3D2feK25lLoWy lmVlhgLHcxOnnojOfUmdfxL5nnGqnlGJ5zUDfYCM7qQBkcOqhQQjxkMK3NU0gMxusByVhns estTKKph/Hpm+gOOdjuPQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:W3rcLIiai9o=:hGuLtObQ2U2Ze6lEe6Wqdl Fdw8RTDTyofJbO6T66NTHyzsIq6ZmPzX4H93kZRqp2tv6mBKROBkfXTspoDc/HhQl3iG910jz 9biCHF9k5eLkVzsWYd4p1JbTPBRku85qUsJg+mOWglAFnWe28qmPLQ5n/roHd9BNSuwMEAZZ3 cLB9igxt4qZiMGt8Qqw3QqK82bQ+K3bI5HlNr16IGEF68nDKx7v/fv8VZ2YMmfnoUD6bzaYp2 CZQCVtNOLqu8MUu3ny30P3UPILiFT/1OOWHkc1oUwO4XsRF4ZH/BpXXzKq2xO1QzedKwks9MA 6sFn0Oz6S2GpQJPIb8MJi6uOucxfX2K0vnnh+N6F68RtnI6+yluCbh4lxMNCDMNsxObRUlF/Z zXQBDqPqIgyOaxhHgNPRlInuvR+o0o89ut6EyCQlXXeAR7V5HIUBJAz7e8UBVgVojioE77Ljj R2hWGNslWObIUotE9/JhsFx/Q7iDLcypfTq1CqS48n9Bhnl3aCdaBTh3EE5QbrB4S8mnBysUj oVSoCI+lBWCgb9L+VROnG9cXZs7y1f5k40TSkbB3obliya4t8F695Ur17r9BAxG5CSOyPSIR0 NZVCqO4KnXQ+JWKaSwC1ZETfw2cySiE0hV0MG2jMOFhHbfTCcxHLIUKRXk1HQqgNQ7Ee81lYI PJeg9Blz5WD8hcz8uGLicO5UNfwhNgBpkqynSCOtw8NM8mYotn+aEYVMwsS/1BGR01Gb10qH/ tvhJUeO//XwntstB4CrYmKs/aTjyWQu4ibKNozHd8u3PRLhgj7GSaKHIlplqbL7aNNJoz2F9f 64UA4v4 Subject: Re: On abstract methods defined on traits From: cmbecker69@gmx.de ("Christoph M. Becker") On 03.08.2018 at 20:47, Pedro Magalhães wrote: > On Fri, Aug 3, 2018 at 7:22 PM Christoph M. Becker > wrote: > >> Frankly, I don't understand what this bug report is about, >> looks pretty much expected (note that the error >> message is totally different from what has been reported; there is no >> class D in the reproduce script). > > Yes, the report is not very clear. But if we follow the docs logic, > A::values in your example should fail to compile as it doesn't have the > same signature (return type) as the method from the trait T. Ah, now I see. Thanks! In other words, is fine, but is not. I find that rather strange. -- Christoph M. Becker