Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120372 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 38231 invoked from network); 20 May 2023 17:58:25 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 May 2023 17:58:25 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 03CE91804AA for ; Sat, 20 May 2023 10:58:24 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, 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-oo1-f43.google.com (mail-oo1-f43.google.com [209.85.161.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, 20 May 2023 10:58:23 -0700 (PDT) Received: by mail-oo1-f43.google.com with SMTP id 006d021491bc7-554f1ae1fbeso746733eaf.3 for ; Sat, 20 May 2023 10:58:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684605502; x=1687197502; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=FXJiDjMKoAs7YiF0B16NaG/n67nnpoYmWHJPtUNfdAQ=; b=V8ppJZ8oJcpAVDGy6s0e2mSxPPf4XePPNMNgeb/ftNf8DAFw5yzsnoLqAeYnwYp0T9 yxE5CLj7zWc7cGRbO19X2XuPPN/FXkXWiE0y9sh8UZ/SlbIhDFONQ+b1rS6zldy0xk03 abSlOhyX66JDv6qQn75D2XI2FCOxcmL3YLekwymYh3OObkzzNUxjvH/Biyc48RT87vTj RNpGofow8fXQBm0ub1H4W75uFaVZ+YRebexOvt+rrt3AI4GpPZMv9BoaPPfvwoS3MeWf TM/YGairwTwuIeacaeanAO3j7FX8zMIkenqESC1oaQF0xUyHW+wb7O/RRbnW7lFwUY4H Rseg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684605502; x=1687197502; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FXJiDjMKoAs7YiF0B16NaG/n67nnpoYmWHJPtUNfdAQ=; b=SVUwG3VMt81Qzsx40Ymgg08wF2zVHFMUNwPMj67dnOHRo9h3Znt29D0oJWdazqKa7T divZMX0WkntohMs6zfIerEFLqauWfV2lWmQ6BGuU96BKQyILGRgjz08DZMyeC1ffpFY5 W0QA7VWSaGIlXkEblO+OtQkzKTlcAzeCUHT16PNmbzCmqOzbL+unnKLVivs6x1o5n307 VSRSJ3CnHeEVnaqdm9u/cD3CAnu+G53iXL0bMD6trbHkRxOj1Es0KKONcuSt9ydSzOOe 2nyNJvaxsRG64p/JhlsiNhB7GGRKX5m93Zl/bG514RdpcbTvAn/FMb7Ds8Qi1KsYP5Z6 GG6g== X-Gm-Message-State: AC+VfDwmd2RzcmdWxqVFFtvwJWc/+ZS44zl70hW7VixBoBZJt3oFqBkh FRB8z7Uq+5WPotneRcbPKsE6im7TuzH5gl/YU+Cpr0M/ X-Google-Smtp-Source: ACHHUZ7zzyaNmR0tqLIdml/IQOHg7uoWOJTN302oZHvXTLBXYOn9BtzkkUUhaHmx+7sCVZpsSqMSZp0A2DWUNRM9FA0= X-Received: by 2002:a4a:354c:0:b0:54f:89c6:15aa with SMTP id w12-20020a4a354c000000b0054f89c615aamr2336245oog.7.1684605502264; Sat, 20 May 2023 10:58:22 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 20 May 2023 18:58:11 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="0000000000008c99db05fc23c80e" Subject: Re: [PHP-DEV] RFC [Discussion]: Marking overridden methods (#[\Override]) From: davidgebler@gmail.com (David Gebler) --0000000000008c99db05fc23c80e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, May 18, 2023 at 9:12=E2=80=AFAM Marco Pivetta = wrote: > > Would it perhaps make sense to have this in userland first, in phpstan or > psalm plugins, to see if there is interest? > 100% this in my view; this is exactly the kind of check which you would expect to be done at the static analysis stage and I don't see a benefit to new behavior in the engine here. Allowing us as PHP users to add whatever kind of metadata and tooling to interpret it we find useful is exactly what user-defined attributes are for. So any attributes added in the engine which declare some behavioural change should be limited to those able to provide a tangible benefit which can't be achieved in userland. -Dave --0000000000008c99db05fc23c80e--