Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120408 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 73554 invoked from network); 27 May 2023 21:10:20 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 27 May 2023 21:10:20 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 50315180511 for ; Sat, 27 May 2023 14:10:19 -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.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (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 ; Sat, 27 May 2023 14:10:18 -0700 (PDT) Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-309550263e0so1851505f8f.2 for ; Sat, 27 May 2023 14:10:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685221817; x=1687813817; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=/Ip9gpqWTZLKhDgNW6HvvOW1Xv1HO5hGAx+rrVbqAEQ=; b=kfrfyR1qfqDPuPvYZfIfMTwqhMEkINKSqqF9e3s467ItJY7QDnztGF0XHNM+E1P5ui P4kUqHr/DHpKYu8U69nCRkEtBHcP33iaIHWVateyfaBFfVE0CL0cv73Aqci3zdeC6lK4 heqhHWBlyg+BIqiyI873O3y8eFYpisACpoHuNBswOusrfg4k49dWI7c2xmSRIWD19sB3 iO4agP4NY8NhEFDQ8c3SqQIjK4KabBYQrr+O/12n5JDe2lHTZQEqCSBqlkLupAJVEwcW 59Ucl/6ITMAdD6TpMECRF4gvtiExOoJLbO1dT3NmX+tWam5eutskXup0MvqMQH2FmqGS SmXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685221817; x=1687813817; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:to:from:date:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=/Ip9gpqWTZLKhDgNW6HvvOW1Xv1HO5hGAx+rrVbqAEQ=; b=QBVmSROT2FkGiFSn4q55/7/8agrx1+R+k3X97sRdmw0b1S3zSwkWDyqX9XBBnMKvZm /m25ivcmo25b/tDhYVtyO63g1dEyxw0odSNVujOrZQkA7rdei6XATx0n5jBNsLi+TN4d WbQpYNKRMEghtRLj5R/5tIGEYz4g4XLporL7YXq5yXA1jdq0HY7E94XmWcJ77vU9+G3Y yk1PhN05xy9X1N+caCeFz3+Rpsi7AWd5O6S17AImlj4Nf4m5T6rn+tBI9bFl2568MsQq mQRtl/PAe38uE86h1ZKEr5MgimIK1rz64/1Pn0ySO7TDmZ+blD4j6LDVpqKxEAXtYHVI oCAg== X-Gm-Message-State: AC+VfDykHXjQU2jPAD74IcCebUw7XWvvMUt/SLHLDFgjMXv3Kh1pWHnw jf2nAmsn9HSy5jtU3KvzR9Zw4PgcMEk= X-Google-Smtp-Source: ACHHUZ5Tgv4M57lgINp59AJC/W2u4v7iKA9xzz/7JSTsWOkgwB+iXORKnIRhuuWv7dHxLMGaXgbjwg== X-Received: by 2002:a5d:5186:0:b0:30a:df14:516b with SMTP id k6-20020a5d5186000000b0030adf14516bmr4079133wrv.6.1685221817201; Sat, 27 May 2023 14:10:17 -0700 (PDT) Received: from [127.0.0.1] (cpc83311-brig21-2-0-cust191.3-3.cable.virginm.net. [86.20.40.192]) by smtp.gmail.com with ESMTPSA id e7-20020a056000194700b00307bc4e39e5sm8943659wry.117.2023.05.27.14.10.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 27 May 2023 14:10:16 -0700 (PDT) Date: Sat, 27 May 2023 22:10:15 +0100 To: internals@lists.php.net User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: <13955358-2538-4DB5-BD8A-506AFC6F2D35@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: =?US-ASCII?Q?Re=3A_=5BPHP-DEV=5D_RFC_=5BDiscussion=5D=3A_Mark?= =?US-ASCII?Q?ing_overridden_methods_=28=23=5B=5COverride=5D=29?= From: rowan.collins@gmail.com (Rowan Tommins) On 27 May 2023 11:40:44 BST, Dan Ackroyd wrote: >On Mon, 22 May 2023 at 22:32, David Gebler wrot= e: >> >> either you use static analysis tools as part of your PHP workflow, bec= ause >> you care about that stuff, or you don't=2E > >I these words imply an unpleasant connotation; that people who don't >use static analysis tools are bad people who don't care about their >code=2E That's not what was being said at all, as is clear a couple of sentences l= ater: > If you don't habitually use these tools already, you're probably not goi= ng to be annotating your code with #[Override] anyway=2E The claim being made was not about good or bad programmers, or whether the= y *deserve* the benefit of the change; it was about whether it's likely tha= t they'll *receive* the benefit of the change=2E=20 To rephrase, the proposal is for the engine to only warn about code where = the attribute is present, not where it's absent, so for a user to benefit t= hey have to edit their code to include it=2E If they edit their code and th= en run a static analyser, they don't need the attribute to be built into th= e engine; if they don't add it, the feature has zero benefit to them=2E So the argument is that the key estimate for whether to include it in the = engine is how many users will add the attribute, but not run a static analy= sis tool=2E If that number is very low, adding it to the engine has a very = low value=2E Regards, --=20 Rowan Tommins [IMSoP]