RE: [PHP-DEV] [RFC][DISCUSSION] ReflectionParameter::getClassName()
| From: | François Laupretre | Date: | Sun, 15 Feb 2015 15:24:05 +0000 |
| Subject: | RE: [PHP-DEV] [RFC][DISCUSSION] ReflectionParameter::getClassName() | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-82727@lists.php.net to get a copy of this message | ||
> De : Matteo Beccati [mailto:php@beccati.com]
>
> The new methods are:
>
> * ReflectionFunctionAbstract::hasReturnTypeAnnotation()
> * ReflectionFunctionAbstract::getReturnTypeAnnotation()
> * ReflectionTypeAnnotation::isInstance()
I agree Reflection must support hinting but annotations, int the PHP world, are a different concept
and don't have anything to do here. OK for ReflectionTypeHint, but not for
ReflectionTypeAnnotation.
Regards
François