Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129915 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 933791A00BC for ; Sat, 24 Jan 2026 18:52:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1769280732; bh=5IAUuN/jrlck8uX+B7JhLhSNk6N8+FqerSPZm7ALPTI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=INwFcwFWnXTicA2dlw7gwiL8nLnf+LLewgtGqm577akaHo7ZBTLMiZYE/LIqivioj Q2GgW++cNP4bFNvfzawhVQ76lnHsQFoO2PaeTlEosGG8gohVsm+e60Cp6nYKumq5Sp qDte6GQQ11WfbHNJbyyFDTvh5sgi8aAoormn2XBg4NGGagwZNMBjdjIWkpnSP0CHOd UyOzSqAHdw9TkJ7HWIKE9PSK0Lh3wEk9hsD/4Peb7621fPU1OgwE5bKirOE8F1RPn6 d5QyAotPDH8COgWVIk4ZEW56o4eEwr//NTYC7+Oa25Zj/6xFtxddBxoP/VchHOoE7k LK1YKEpjqghGQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 727211801D7 for ; Sat, 24 Jan 2026 18:52:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_50,DMARC_NONE, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 24 Jan 2026 18:52:11 +0000 (UTC) Received: by mail-pl1-f195.google.com with SMTP id d9443c01a7336-2a1388cdac3so25627805ad.0 for ; Sat, 24 Jan 2026 10:52:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769280725; x=1769885525; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=VGkjBp8k4TQjMfeh0J0WsLxwLqfmbW7flgbOZyfzXgs=; b=jnvmG2yw9oTwJeYypU8Ua/XilqIVGir2OzkfwqLlj0pammw56KwT+XG3syJZ/U1Wly nHH1slc3qH0dlCl5wKV7FCHJ1Nkjer7dXWLxq1D+n0L4iyi3Cjb7Nb2/CYltq+CMG/Vm yPwTqcWDKZrOOCZTNzcoeu5nhOUAebcRrLpDQPjeBug/2h84xAJYxoBAMY/ttD0m7NHJ XKQMnJzI/TLl9/mcm2z1nk1/4yV12H4tEA9p4BQ08mGSAtWbYNQqcN5lDLNS5VMSfrMs J7v0UV8FLcaLfUQo27WWvin+0jRB+JjKgz8yaMy5t+CiEfoG5s2yzWReQduH0bQZ3INM RffQ== X-Gm-Message-State: AOJu0YxW1WdOu3CXZxCJ2CIRt5DazIQbx5vnpZq1kYQF8HITzb40YIaf duj3O8UTczlLBzfIKnnQWuTb1y2sjEb3oiCjIEGUxPUym5PwHlvxRRE8PXPTHDV+ X-Gm-Gg: AZuq6aIBbQVXbkpClUTtSqN+iOw8qsFm/SVGZZLTFOOIBUnzuKp8jPWfPjWmI/sowy2 U31ee2lmfF3VEMhpxXgbQ5EUTkkMNKxcYheiZpwlemFK8bTVSX0n15ACuPqLtUY8LNvGgA3ZGHO NLS/erMg+3UlSFBQ5yXX1Mp9GCJucT1o94Vix7/CT8ElF1+sHSiIFiSu78obr+FN2auMvb9k9Ll 7/9Vn6tIoSef428PFe+rHFs7ebp8FCsjLX6whQPCdec48S29fQ2o3av4SIpYtk1LMrpEA8hNYSg /NZ1qfVBj5sfabJb3tEu3L0gygBg7cScO/oTklbsiAUVkksDBFxEzkK/SrDR4vQDX9/APwkiCKJ iIYB36iQj1SeNMShH7PtXIFPR+CFnEZk06fiQrHTqyFcf4iafNzO2Is+tdy0GRnr4Ls5vuE4pvT RWA08EidkJQJVnWG16fD7XCnTFkAV/QG8G3Ae7VviI2HP6AA== X-Received: by 2002:a17:902:f78a:b0:2a7:757b:35ad with SMTP id d9443c01a7336-2a7fe732e2amr69974455ad.42.1769280724847; Sat, 24 Jan 2026 10:52:04 -0800 (PST) Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com. [209.85.215.169]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a802faf6f9sm50866675ad.71.2026.01.24.10.52.04 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 24 Jan 2026 10:52:04 -0800 (PST) Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-c46d68f2b4eso2130382a12.2 for ; Sat, 24 Jan 2026 10:52:04 -0800 (PST) X-Received: by 2002:a17:90b:4b0d:b0:353:3934:1449 with SMTP id 98e67ed59e1d1-35367031e8cmr6501829a91.12.1769280724187; Sat, 24 Jan 2026 10:52:04 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 24 Jan 2026 19:51:37 +0100 X-Gmail-Original-Message-ID: X-Gm-Features: AZwV_QiZnpLipjcapPzXlx8oRJJJfDS6NFu3MsvNEOK_4QHkW_xG2RW3-jJxuns Message-ID: Subject: Re: [PHP-DEV] [RFC] Allow Reassignment of Promoted Readonly Properties in Constructor To: Nicolas Grekas Cc: PHP Internals List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: edorian@php.net (Volker Dusch) On Thu, Jan 22, 2026 at 4:39=E2=80=AFPM Nicolas Grekas wrote: > > Here is a new RFC for you to consider: > https://wiki.php.net/rfc/promoted_readonly_constructor_reassign > Thank you very much for the RFC. I really enjoyed reading it; clearly explained, easy to read, and with a good focus on laying out how everything works and considering edge cases. Especially the working examples around "Child Classes Can Reassign Parent Properties" have been great to read. It's delightful that you were able to provide a PoC implementation for me to check and answer the remaining questions I had. Great to see more people being able to modify php-src to this scope. I think this makes sense, aligns behavior with clone, and patches up one edge case with using CPP over regular properties, easing refactoring. While this is not a problem I, personally, ran into, it makes sense to me, and given any upcoming insights in the discussion, I'm in favor of it. Thank you, Volker