Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78615 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71743 invoked from network); 4 Nov 2014 08:37:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Nov 2014 08:37:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.15.15 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.15.15 mout.gmx.net Received: from [212.227.15.15] ([212.227.15.15:49569] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 75/C2-24107-85098545 for ; Tue, 04 Nov 2014 03:37:45 -0500 Received: from [192.168.0.101] ([91.67.244.80]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0Lz3rc-1Y7WM91zfM-014BHa; Tue, 04 Nov 2014 09:37:41 +0100 Message-ID: <54589055.7060105@gmx.de> Date: Tue, 04 Nov 2014 09:37:41 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: ivan.enderlin@hoa-project.net, internals@lists.php.net References: <54588915.3010601@hoa-project.net> In-Reply-To: <54588915.3010601@hoa-project.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:TTE6woGDsqQcITluNtKzEgQinIgIsaFGk0rGrGShQzAHwhHHU8x Bzet0BsL0GPSZUs7yBk39+QDRTXBtgQjpThoQ7cO72R7+NT809WmtIgB38GczJrANIMpK++ k59pegbPotluJpMQ47FzQKqtuQAZp6ZDSsfEMKu1dZN5Soz8kNLQKsr1TO+R+VNoAVjmZ2c DfLqNBqshJKBslIzNrjUw== X-UI-Out-Filterresults: notjunk:1; Subject: Re: [PHP-DEV] [RFC][Vote] Return Types From: cmbecker69@gmx.de (Christoph Becker) Ivan Enderlin @ Hoa wrote: > Excellent RFC, thank you. However, there is no mention about using > `static`, `self` or `parent` as a type (it is possible for an argument). > Something like: > ```php > class Singleton { > > public function getInstance ( $x, $y): static { … } > } > ``` > Maybe I miss it in the discussion? > Thoughts? The possible usage of self and parent is already documented: . Regarding static, see . -- Christoph M. Becker