Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115968 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 7495 invoked from network); 6 Sep 2021 15:45:00 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Sep 2021 15:45:00 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CBA70180504 for ; Mon, 6 Sep 2021 09:22:15 -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=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS1836 195.49.0.0/17 X-Spam-Virus: No X-Envelope-From: Received: from darkcity.gna.ch (darkcity.gna.ch [195.49.47.11]) (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 ; Mon, 6 Sep 2021 09:22:15 -0700 (PDT) Received: from smtpclient.apple (unknown [IPv6:2001:918:ff83::7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTPSA id F19E8151668F for ; Mon, 6 Sep 2021 18:22:13 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Date: Mon, 6 Sep 2021 18:22:13 +0200 References: To: PHP internals In-Reply-To: Message-ID: X-Mailer: Apple Mail (2.3654.120.0.1.13) Subject: Re: [PHP-DEV] Alias stdClass to DynamicObject? From: cschneid@cschneid.com (Christian Schneider) Am 06.09.2021 um 18:08 schrieb Benjamin Morel = : > Yes, please! A future where dynamic properties are only allowed on > DynamicObject is bright. I have nothing against a DynamicObject alias for people who like to be = more explicit in their code... > I would even deprecate the stdClass alias straight away, so that the = whole > thing can be gone in PHP 9. ... but I'd prefer retaining a backward compatible version for library = code, at least for a while and preferably without warnings :-) - Chris