Re: Return type hints
| From: | troels knak-nielsen | Date: | Mon, 07 Apr 2008 13:06:09 +0000 |
| Subject: | Re: Return type hints | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-36841@lists.php.net to get a copy of this message | ||
On Mon, Apr 7, 2008 at 2:28 PM, Felipe Pena <felipensp@gmail.com> wrote:
> class test {
> static public function +Itest testing($instance) {
> return $instance;
> }
> }
A more sane syntax, might be something like:
class test {
static function testing($instance) : Itest {
return $instance;
}
}
--
troels