Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120515 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 65236 invoked from network); 2 Jun 2023 21:28:23 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 Jun 2023 21:28:23 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 65C76180089 for ; Fri, 2 Jun 2023 14:28:21 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 2 Jun 2023 14:28:20 -0700 (PDT) Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-974638ed5c5so203838866b.1 for ; Fri, 02 Jun 2023 14:28:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685741299; x=1688333299; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=HqwBoA0EGuQy8s2vY022JrNkDENRB4NIwCjn1CIeDxk=; b=aT27dr3c/EYObSTHKXYVFs6um0Iq87WBtGG0tHgxpPsLeBz91slbuqTai7OtPeaYvJ 3fWVlXgW10qz7C9ADAMqTgRXyv0dCMP5JzLMsQE4vWPTumpf8ZT7ppnb88/0I+wO+rO5 RPl1EKmOHlM8HduzJU8EY8koIHyyUfolSvZL9ZM5Cl5fB0Claqd3DXdQPnACzNiLDP5f EypY+gE/wZF5BBCfjRnG0zs4iDbgJArRUM9aX3WNC1G8NkrOSQaIOe11Yym5MFqgj06U lrLxwX2lx3oTknXBLX0jWfnleOsCDsuek1zzgprx8bmQYMayxcqt0Ix3BSVlk0+f45hZ Qydw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685741299; x=1688333299; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HqwBoA0EGuQy8s2vY022JrNkDENRB4NIwCjn1CIeDxk=; b=HoPVPikqlmtrRpJDkyM/cqY3N284IPr1xR+WXw2m/y3u+8nOEPWpef8JrAD5jRyiun 039G1JmKRkCscsiJ5kBeKfusLyE/24BMPs2+G7Os8J3HSNJZd+zflJUxAbLdWYJawHop H4c+NquubfuyM8hrZnT5gR063h9KzfATW7Rwjhy7Dpiw+p2Wpxv2/GVAK1Ok/YD1RQHX JsILGrrUz/Db6BxV92JYehvVwSRRt74MSungvVBfK80lj53xX1/kX4Z7adTXSsXXScdA gmLXEPGUy36eIEsA9GB0Yh0qqkI3WFWRQ3IcziXG7HeQd+mBLTi9XgCGUDqXV8IFezn3 gLfQ== X-Gm-Message-State: AC+VfDxgxQf4BUcxvD4c+TKYK0ssuVz4JAO66iNQ34kzKj8gMY4sip9X BEUvlxxrTTqHdBW2StnObPaRn8v5woY= X-Google-Smtp-Source: ACHHUZ6BGWj93c4qsNOAiuvJfyZBlcPVVp+0yi/9Pxh+nRuwz/iSZz43zoBdCjpnPadSiR595rF+KQ== X-Received: by 2002:a17:907:6d06:b0:95f:969e:dc5a with SMTP id sa6-20020a1709076d0600b0095f969edc5amr5558987ejc.30.1685741299384; Fri, 02 Jun 2023 14:28:19 -0700 (PDT) Received: from [192.168.0.59] (178-117-137-225.access.telenet.be. [178.117.137.225]) by smtp.gmail.com with ESMTPSA id bg11-20020a170906a04b00b0094f282fc29asm1176985ejb.207.2023.06.02.14.28.18 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Jun 2023 14:28:19 -0700 (PDT) Message-ID: <901b29bb-b000-7312-9658-926e663e944a@gmail.com> Date: Fri, 2 Jun 2023 23:28:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 To: internals@lists.php.net References: Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] RFC [Discussion]: Marking overridden methods (#[\Override]) From: dossche.niels@gmail.com (Niels Dossche) Hi Tim On 5/11/23 18:37, Tim Düsterhus wrote: > Hi > > I'm now opening discussion for the RFC "Marking overridden methods (#[\Override])": > > ---- > > RFC: Marking overridden methods (#[\Override]) > https://wiki.php.net/rfc/marking_overriden_methods > > Proof of concept implementation is in: > > https://github.com/php/php-src/pull/9836 > > ---- > > Thanks to Ilija Tovilo for reviewing the implementation, providing additional test cases and proof-reading the RFC text. Also thanks to my coworkers at WoltLab for proof-reading the RFC text as well. Any remaining mistakes [1] are my fault :-) > > Best regards > Tim Düsterhus > > [1] For example the typo in the URL that I noticed too late. > I support this RFC. Thank you for working on this. The implementation also looks quite small and not intrusive in the engine. I see some people sharing feelings that this perhaps belongs more into static analysis tools instead. In my opinion, static analysis tools are used to catch mistakes the language can't protect you against (*). In the case of this attribute, the language could very well protect the user so I think it makes sense to add it to the language. Furthermore, implementing it in the language makes it universal. (*) at least, without sacrifices Kind regards Niels