Le 04/11/2014 03:01, Levi Morrison a écrit :
Dear Internals,

I am pleased to announce that the return type RFC is now open for
voting[1]. Note that the implementation needs a bit of cleaning up
before merging should the RFC be accepted; Dmitry has already
volunteered to help with that, but more eyes are welcome.

A couple of things have changed in reflection[2] since the last
iteration, but is otherwise the same.

The implementation is slightly out of date with the RFC, but soon it
will be updated to match.

   [1]: https://wiki.php.net/rfc/returntypehinting#vote
   [2]: https://wiki.php.net/rfc/returntypehinting#reflection
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?

Regards.

--
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

Reply via email to