Re: Re: [RFC] Type hints (parameter and return value)
| From: | Christian Schneider | Date: | Thu, 17 Apr 2008 12:14:24 +0000 |
| Subject: | Re: Re: [RFC] Type hints (parameter and return value) | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37060@lists.php.net to get a copy of this message | ||
Arvids Godjuks wrote:
> So full syntax will be like this
> function (integer) test(integer $value) { ... }
I guess you are right: int and integer seem to be aliase and both check
for int *or* numeric strings, not the type int.
It is also not clear if (string) accepts ints/floats which are often
valid values.
I think a table of which type hint accepts which values would be useful.
And there also remains the issue with the keywords where I'd like to be
enlightened :-)
- Chris