Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119003 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 26853 invoked from network); 14 Nov 2022 11:32:00 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 14 Nov 2022 11:32:00 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E3E681804A9 for ; Mon, 14 Nov 2022 03:31:59 -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=0.3 required=5.0 tests=BAYES_05,SPF_HELO_PASS, SPF_NEUTRAL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS30827 82.113.144.0/20 X-Spam-Virus: No X-Envelope-From: Received: from xdebug.org (xdebug.org [82.113.146.227]) by php-smtp4.php.net (Postfix) with ESMTP for ; Mon, 14 Nov 2022 03:31:59 -0800 (PST) Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id D27F210C035; Mon, 14 Nov 2022 11:31:58 +0000 (GMT) Date: Mon, 14 Nov 2022 11:32:04 +0000 (GMT) X-X-Sender: derick@singlemalt.home.derickrethans.nl To: Stephen Reay cc: Larry Garfield , php internals In-Reply-To: Message-ID: References: <0854b030-c51c-4c1b-a7dd-22835a1e5da9@app.fastmail.com> User-Agent: Alpine 2.23 (DEB 453 2020-06-18) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1430265892-1668425525=:1167818" Subject: Re: [PHP-DEV] [RFC] Asymmetric Visibility, with readonly From: derick@php.net (Derick Rethans) --8323329-1430265892-1668425525=:1167818 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Mon, 14 Nov 2022, Stephen Reay wrote: > As I understand it, you=E2=80=99re suggesting that a property declared as= =20 > `public protected(set)` would never trigger __set(). I would think that that would be against our current practice, which is=20 easy enough to explain as "if the property isn't visible set,=20 then use __set()". I would argue that "protected(set)" marks a property=20 as invisible from a non-inherited class/method, and hence __set should=20 be called. cheers, Derick --8323329-1430265892-1668425525=:1167818--