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>. -- Christoph M. Becker -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php