Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126888 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 qa.php.net (Postfix) with ESMTPS id 9665D1A00BC for ; Fri, 21 Mar 2025 11:07:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1742555081; bh=DB4UFQC+oJusK2O0l+3v10I1TwhQr8jVDkx6MG7FYLI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=bORwYA+scsPindnmwptPpdOtb1fN8u7NNIp5GYGmy87tiBc334yL/vD1fW0lMMeGN LvQTmomHnDNsi1ZS76oxygn4WGgVhBXtb7R+zfzp+v5n/75pE+EhVaPvnrU6zHc5Al KX1M8f7knabSxP+mQ8vhVFZsv5757jS+Rxtj0ubpEOq/YVaEQB2Nd3qaSaRMKYgNhc QDNYkjLTL9BHtt3AE5DNSLYY18ggiZIq6CTbxbWBYeQznKhFa2Fy0gpeNr1CU1T0kQ ps7Ei4XS0K4GKGDc2t5zQGUupI8ZPx6cyFZCUdF21jj0/1G2CTW/UbroXgUEaSgMX6 Sp65w9ozoPx+Q== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D886D180541 for ; Fri, 21 Mar 2025 11:04:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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 ; Fri, 21 Mar 2025 11:04:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1742555229; bh=H2SW19ze2xyWfmCbTVA+1JJZMI/K0hchoaqW/LqS9OA=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type:from:to:cc:subject:message-id; b=bTk0PgFYeFpvnfX3HX/imi1bupDG8JVztRov+QIY61oNbabq+Z7mK1eG1IQUg9K5G BbSzaohQNf1qxPpIIKpq3PzVZBIT9qx4ncUI+gWMG9FNfwQQz/5mXJfhX54ghWAaE6 0V7gUtDiaX9TWbPq6h6Ag7wfXPmJ97bMMGG7YtcFg0b2lHBs5WoteE8VPNo8StcXV+ UmsJA1JLWK471G5ntGwWD26irneINq35ISvVHjuC6aUhvdv9KeOlduLgN9F/iQ5+Hk Py9wh8PliZXhqdcc6Xb0MqBnlFtsTvVWZfec0eKQ3V/XFdOT3yUIhJvyhCijZjfNPQ lQUnAaDnJPEoQ== Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Fri, 21 Mar 2025 12:07:09 +0100 To: Daniel Scherzer Cc: internals@lists.php.net Subject: Re: [PHP-DEV] Re: Constructor property promotion for final properties In-Reply-To: References: Message-ID: <250fd68437fe3025e3aad9eff271dde3@bastelstu.be> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi Am 2025-03-20 21:12, schrieb Daniel Scherzer: >> I recently found out that constructor property promotion cannot be >> used >> for final properties. I propose that it become allowed. Thoughts? >> Would >> this need an RFC, or is this minor enough to be acceptable with just a >> mailing list discussion? >> > > Given the lack of engagement, I want to make it clear: unless somebody > objects, maintainers have agreed to merge a PR implementing the feature > in > 2 weeks. > > If you object, please speak up. Can you clarify if the following would result in constructor property promotion or not: class Foo { public function __construct( final string $bar, ) { } } Best regards Tim Düsterhus