Re: [RFC] Static Constructor
| From: | Morgan | Date: | Wed, 28 Aug 2024 01:29:13 +0000 |
| Subject: | Re: [RFC] Static Constructor | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-125331@lists.php.net to get a copy of this message | ||
On 2024-08-28 09:51, Bilge wrote:
On 19/06/2024 19:25, Tim Düsterhus wrote:Two functions with the same name in the same class?Hi On 6/19/24 16:03, Erick de Azevedo Lima wrote:Why can't it just beI have considered some names, actually. I just chose this one for the implementation because I tried to design it to be as close as possible to the C# implementation and they call it "static constructor". But the name can be changed to another one without any problem at all.I would suggest__constructStatic(). This matches the existing naming pattern of__callStatic()being the companion to__call(). Best regards Tim Düsterhuspublic static function __construct()? Cheers, Bilge