Re: [RFC] ReflectionParameter::hasTypehint() / getTypehintText()
| From: | Levi Morrison | Date: | Thu, 29 May 2014 20:55:32 +0000 |
| Subject: | Re: [RFC] ReflectionParameter::hasTypehint() / getTypehintText() | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-74644@lists.php.net to get a copy of this message | ||
On Thu, May 29, 2014 at 1:59 PM, Sara Golemon <pollita@php.net> wrote:
> Pretty straight-forward. Makes it easier to recreate a function
> signature from PHP (Mocking)
> https://wiki.php.net/rfc/reflectionparameter.typehint
Sara,
I'm hoping to improve the way types are handled in reflection but I've
been waiting until the return types and nullable types RFCs have been
voted on as that will most likely impact my decisions. I'd like to
introduce getType and hasType functions that holds various bits of
information such as isArray(), isCallable() and could also contain the
text representation of the type. What are your thoughts on that?