Re: [RFC] Return type-hint
| From: | Josh Davis | Date: | Thu, 29 Jul 2010 12:17:29 +0000 |
| Subject: | Re: [RFC] Return type-hint | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-49170@lists.php.net to get a copy of this message | ||
On 29 July 2010 13:57, Felipe Pena <felipensp@gmail.com> wrote:
> My suggestion (I guess already told it in some mail...) is to
> identify the native php type just when it's lowercased (case-sensitive).
Alternatively, one could use the full qualified name to refer to the
class name, e.g.
function expectsScalar(string $str) {}
function expectsObject(\string $obj) {}
-JD