Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116265 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 13629 invoked from network); 12 Oct 2021 13:13:12 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 12 Oct 2021 13:13:12 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AE581180381 for ; Tue, 12 Oct 2021 06:59:25 -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,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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, 12 Oct 2021 06:59:25 -0700 (PDT) Received: by mail-ed1-f45.google.com with SMTP id y12so39019eda.4 for ; Tue, 12 Oct 2021 06:59:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9o4COOiYsjshVqnyZoOjZO2IXTs0J9PCe8kC808OuDE=; b=Wko8tKLjdzRRb6sBVzqEm06lzUNOkHInBgbvLFuvhCyp8akn6a3czGIINUPG0p2tyt Q4sbG180x/OrP98VJS2r2eunCDEdywDpiq3Oyb4denesOP7hbpj9G858v0SdJ7IuJwJt iO2xAvBPKGiJNW/F99A9os+JjqhxVa7dtHd9TClU8m31HZVTuOlLJbeLKR4QJO0zQgkY R/j7uR8b9lhmUaIeGswsZPivThSQWxuBTbM8lZr3BZItU4LHOiBB17chCRWZ4uMSet9X lP4b9ujtfDTKY6946cF1JztgdX9Ci0a0HfKCeUxbcansIBMQZuiwWmPMSRALFXwhrBpN 6h8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9o4COOiYsjshVqnyZoOjZO2IXTs0J9PCe8kC808OuDE=; b=xvTxQN+vorAGBnyQlKS08jGBjhqGEhub+enm77tEWHm+q6GwF3gOCjNvW5MOqGSpXX 38RhV6NMSgDrKW6orCy4n35I++H4TbR8b881qa605DqviOzqHwr5kE9YGSY285fuoNsI XOg2IB85rUaHqogDByri8jFkJgmTcK+fHlbtYrkHMZ3Rw/kSVk0w8jv8zwnS7GERzYJy 2e3OHxIjljNLif8bRwsNBsNQUxPP+EGSJTJ1f8RpU37XBiRdSxKeA2pyQxgxjmfEY8Up WszSeh7XkYn+LgWwQmvCa7xZBiXC9LP3J/97+OISG3hpoNapUuFztta4/rpSN4UcE2cP 2KEw== X-Gm-Message-State: AOAM531IdVK3/QA/WL6A+h4mzyg4P96MovywogvWtkFziWS0Fgw6kxs3 f91mzZA80meADDZZ4kr5FFA5xebFo3FnhfuH7puvW2l/ X-Google-Smtp-Source: ABdhPJzGqaOZ4RxMz8dVRHaeVld2U43Uj9apqO3lM/OrnXHWld+6xbPZIkyDGSz/p0iKzv6544KDbQoCv1J+XbOt5es= X-Received: by 2002:a17:906:1dc4:: with SMTP id v4mr33459431ejh.282.1634047163844; Tue, 12 Oct 2021 06:59:23 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 12 Oct 2021 15:59:07 +0200 Message-ID: To: Levi Morrison Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000bf4a4105ce28400e" Subject: Re: [PHP-DEV] Re: [RFC] Deprecate dynamic properties From: nikita.ppv@gmail.com (Nikita Popov) --000000000000bf4a4105ce28400e Content-Type: text/plain; charset="UTF-8" On Tue, Oct 12, 2021 at 3:52 PM Levi Morrison wrote: > > Based on the received feedback, I've updated the RFC to instead provide > an > > #[AllowDynamicProperties] attribute as a way to opt-in to the use of > > dynamic properties. As previously discussed, this won't allow us to > > completely remove dynamic properties from the language model anymore, but > > it will make the upgrade path smoother by avoiding multiple inheritance > > issues. > > Quoting the updated RFC: > > We may still wish to remove dynamic properties entirely at some later > > point. Having the #[AllowDynamicProperties] attribute will make it much > > easier to evaluate such a move, as it will be easier to analyze how much > > and in what way dynamic properties are used in the ecosystem. > > But in this place it does not mention PHP 9.0. Other places still > mention converting it to an error for PHP 9.0. Is that still the plan? > The current RFC proposes to make dynamic properties an error for classes without #[AllowDynamicProperties] in PHP 9.0. On the other hand, classes using the attribute will be able to continue using dynamic properties without error. (That is, as usual: Deprecations are converted to error in the next major version.) Regards, Nikita --000000000000bf4a4105ce28400e--