Re: [RFC] Primary Constructors
| From: | Tim Düsterhus | Date: | Mon, 29 Jun 2026 19:07:34 +0000 |
| Subject: | Re: [RFC] Primary Constructors | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-131608@lists.php.net to get a copy of this message | ||
Hi
Am 2026-06-29 02:17, schrieb Rob Landers:
I'd like to put forward Primary Constructors <https://wiki.php.net/rfc/primary-constructors> for comment.The RFC currently does not specify the interaction with visibility. It is currently implied that the constructor will be
public, but the RFC doesn't spell that out and doesn't specify whether or not it is possible to make such a constructor non-public (e.g. to actually treat it as a “primary constructor” in a sea of multiple named constructors).
Best regards
Tim Düsterhus