Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112602 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 17291 invoked from network); 22 Dec 2020 19:22:21 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 22 Dec 2020 19:22:21 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 834901804B1 for ; Tue, 22 Dec 2020 10:55:06 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: * X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 22 Dec 2020 10:55:05 -0800 (PST) Received: by mail-lf1-f41.google.com with SMTP id y19so34235551lfa.13 for ; Tue, 22 Dec 2020 10:55:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ltLkOXb5zCZhCmTMs9xmoCtVOebaPrTYSaf1ue39J7M=; b=Giv8N4kE+4Qk29nD2r3PItz1hDEmrxr3cuezX59I7xQgOCxPE2r6yh+psSl4tasBMY wIAgbGa2BMHxWj538FNjgwVXv/kJdWaz3bQHGm7gT2Yc3BOC0DpCsduzF30TeNbJ7LE5 oXVeYvGaOQbNBaz+YhCDrsMR1FrJBdyvtq9UtY+iEEtrn38OJ6ccNoPDRzTSrK6iQ/d5 4i3hbJ0lJ3ezN+2zKqJWLM+6kn2wk0qlNJw2Zx2NBK9Y2in5VEHDCMwLZ6vITDc4WxQY MiWhW768jZ1ksRC27Upn7Pr/Sh14gPVE5mikIMJEVmwWTmKFOFvUBDp9sQXH6TgS4vbO BtnA== X-Gm-Message-State: AOAM533hRkfcX2RgtzId5Sg1BZXTQ1LBk4ykC+jsmUIEJhpLrOuAQ+tY dDdvfEV0VuONAl2Fk6sFpheIytqKbESq7wT2tlLTKQ== X-Google-Smtp-Source: ABdhPJwTkBQfjS/XBBahYxRusVdUDDPAGoZ5RShUxklcVBB3zWbgbdHmS1iKincr5V3Gav0drlrR5jmuZtQYtWurArk= X-Received: by 2002:ac2:5f58:: with SMTP id 24mr9812533lfz.302.1608663304357; Tue, 22 Dec 2020 10:55:04 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 22 Dec 2020 12:54:53 -0600 Message-ID: To: Nicolas Grekas Cc: Benjamin Eberlei , PHP Internals Content-Type: multipart/alternative; boundary="000000000000d1deb605b7121c58" Subject: Re: [PHP-DEV] #[Deprecated] Attribute From: pollita@php.net (Sara Golemon) --000000000000d1deb605b7121c58 Content-Type: text/plain; charset="UTF-8" On Tue, Dec 22, 2020 at 12:35 PM Nicolas Grekas < nicolas.grekas+php@gmail.com> wrote: > It would be great to allow adding this attribute on classes. What about > allowing it right now and not bind it to any runtime side-effect? That > would allow static analyzers to do their job. Same for consts and > properties by the way. > > Also, it would be very useful to add named parameters to the attribute, > namely: "package" (the name of the package that declares the deprecation) > and "version" (the version of that package that introduced the > deprecation), next to the message. > > This is critical info when building reports of deprecations. > > You could do that now with a polyfill from userspace. If the annotation need not have an effect, then it's just any other userspace implementation. -Sara --000000000000d1deb605b7121c58--