Re: Return type hints
| From: | Jarismar Chaves da Silva | Date: | Mon, 07 Apr 2008 13:15:00 +0000 |
| Subject: | Re: Return type hints | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-36842@lists.php.net to get a copy of this message | ||
Or something like this would be nice too, please avoid using +<TYPE> or (<TYPE>).
class test {
public static Itest function testing($instance) {
return $instance;} } troels knak-nielsen wrote:
On Mon, Apr 7, 2008 at 2:28 PM, Felipe Pena <felipensp@gmail.com> wrote:class test {A more sane syntax, might be something like: class test {static public function +Itest testing($instance) { return $instance; }}static function testing($instance) : Itest { return $instance; }} -- troels -- *Jarismar Chaves da Silva*