Le 04/11/2014 09:37, Christoph Becker a écrit :
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: <https://wiki.php.net/rfc/returntypehinting#differences_from_past_rfcs>. Regarding static, see <http://news.php.net/php.internals/78116>.
Thanks :-). -- 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/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
