Re: Return Type Hinting for Methods RFC

From: Date: Fri, 23 Dec 2011 00:44:42 +0000
Subject: Re: Return Type Hinting for Methods RFC
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-57049@lists.php.net to get a copy of this message
> (I'm unsure about the T_DOUBLE_ARROW, although for parsing, I feel there > should be some token there > before the class name, though I'm unconvinced on which) What about this? function foo (Class1 $a, Class2 $b) return Class3 { /* Do something */ return new Class3($a, $b); }

« previous php.internals (#57049) next »