Re: [RFC][Vote] Return Types
| From: | Ivan Enderlin @ Hoa | Date: | Tue, 04 Nov 2014 08:40:28 +0000 |
| Subject: | Re: [RFC][Vote] Return Types | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-78616@lists.php.net to get a copy of this message | ||
Le 04/11/2014 09:37, Christoph Becker a écrit :
Ivan Enderlin @ Hoa wrote:-- Ivan Enderlin Developer of Hoa http://hoa-project.net/ PhD. at DISC/Femto-ST (Vesontio) and INRIA (Cassis) http://disc.univ-fcomte.fr/ and http://www.inria.fr/ Member of HTML and WebApps Working Group of W3C http://w3.org/Excellent RFC, thank you. However, there is no mention about usingThe possible usage of self and parent is already documented: <https://wiki.php.net/rfc/returntypehinting#differences_from_past_rfcs>. Regarding static, see <http://news.php.net/php.internals/78116>. Thanks :-).static,selforparentas a type (it is possible for an argument). Something like:class Singleton { public function getInstance ( $x, $y): static { … } }Maybe I miss it in the discussion? Thoughts?