Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103032 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86782 invoked from network); 3 Aug 2018 17:08:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Aug 2018 17:08:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=mail@pmmaga.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mail@pmmaga.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain pmmaga.net designates 149.210.149.72 as permitted sender) X-PHP-List-Original-Sender: mail@pmmaga.net X-Host-Fingerprint: 149.210.149.72 outbound1.mail.transip.nl Received: from [149.210.149.72] ([149.210.149.72:33912] helo=outbound1.mail.transip.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 50/CC-59628-21C846B5 for ; Fri, 03 Aug 2018 13:08:36 -0400 Received: from submission6.mail.transip.nl (submission6.mail.transip.nl [149.210.149.10]) by outbound1.mail.transip.nl (Postfix) with ESMTP id 41htmH6b9qzT4vW for ; Fri, 3 Aug 2018 19:08:31 +0200 (CEST) Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by submission6.mail.transip.nl (Postfix) with ESMTPA id 41htmF1nxlz12M5b for ; Fri, 3 Aug 2018 19:08:29 +0200 (CEST) Received: by mail-wm0-f51.google.com with SMTP id y2-v6so7007684wma.1 for ; Fri, 03 Aug 2018 10:08:29 -0700 (PDT) X-Gm-Message-State: AOUpUlF0U9OksylzdO/+WBs+xWh9Emx2L4ewXcp4WoaBLHk2QaHmDoO1 M4TBaSQjrKci0cej3+d4cDAgSJQ+bDPqPuGwJyQ= X-Google-Smtp-Source: AAOMgpeAd/22tBBb38LL5rPFB7AW1G2FKIM1niDLzW44yHt5Hz1qu+TI5bWIfLpK2AAlhI/aemQcvT2Q120bz3UZlR4= X-Received: by 2002:a1c:b58e:: with SMTP id e136-v6mr5226330wmf.141.1533316106688; Fri, 03 Aug 2018 10:08:26 -0700 (PDT) MIME-Version: 1.0 Date: Fri, 3 Aug 2018 18:08:16 +0100 X-Gmail-Original-Message-ID: Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="000000000000de1fa305728af923" X-Scanned-By: ClueGetter at submission6.mail.transip.nl DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=transip-a; d=pmmaga.net; t=1533316110; h=from:reply-to:subject:to: cc:references:in-reply-to:date:mime-version:content-type; bh=hGnji/xX+GofbGeYpqGZ+UmthNtjd+Rbrb7pB9WlWKs=; b=pj7ju3zZkPTcwa2KiSw/ak6QIjhwtlhmIWygQZWL8VFJ1gvt7pvpfgDH33DB1Qc5jvLoAg NWM6Vc7RiyMJQbYWXLXLhQYAMRMvSrGb7qLVSjPI61ir3hoEZkjCdAKkX6GD1jcC+exT2b qO8PDTB8keZWmp45oGJYM66POMt2WRokXs4oltDYL2RLkM9PzGtvXMJhPGNed4XijCbTEF pLAvnaUaV/ECjB7lKxQDQV5RrbU4gEpxhjcDjmlpL7ji2yiCTeBt8AchRhgp8pHqeSPxp0 H7m285jcUdKrbhlfQUAsqmEtGUmyMma6S400FeBY7+OhvIAQEQqnRwIgRRbEQg== X-Report-Abuse-To: abuse@transip.nl Subject: On abstract methods defined on traits From: mail@pmmaga.net (=?UTF-8?Q?Pedro_Magalh=C3=A3es?=) --000000000000de1fa305728af923 Content-Type: text/plain; charset="UTF-8" Hi internals, On the documentation about traits there is a mention to: "Traits support the use of abstract methods in order to impose requirements upon the exhibiting class." in https://secure.php.net/manual/en/language.oop5.traits.php#language.oop5.traits.abstract However, this is not true, and it has never been since traits were introduced (https://3v4l.org/tYAmu). There is a related bug report in https://bugs.php.net/bug.php?id=75449 What currently happens is that (like with normal methods), the method on the receiving class is used and the method from the trait is simply ignored. Although this can be fixed, I wanted your opinion on it as this would be the only thing from traits that would impose anything on the receiving class and conflicts with the normal precedence rules. Regards, Pedro --000000000000de1fa305728af923--