Hi everyone,
I know it's late for the RFC party, but it looks like some form of STH
is going to land in PHP7. Without reflection support, which is also
missing from return types as far as I know.
That's why I'm resuming this thread, as I still think this is the best
approach. Many do not lik
> De : Matteo Beccati [mailto:p...@beccati.com]
>
> The new methods are:
>
> * ReflectionFunctionAbstract::hasReturnTypeAnnotation()
> * ReflectionFunctionAbstract::getReturnTypeAnnotation()
> * ReflectionTypeAnnotation::isInstance()
I agree Reflection must support hinting but annotations, int th
Hi,
On 14/02/2015 21:23, Matteo Beccati wrote:
On 14/02/2015 16:34, Philip Sturgeon wrote:
On Sat, Jan 31, 2015 at 8:27 PM, Andrea Faulds wrote:
I think the more important issue is the conflict with the
ReflectionTypeAnnotation RFC, which proposes something similar to
what was originally part
On 14/02/2015 16:34, Philip Sturgeon wrote:
On Sat, Jan 31, 2015 at 8:27 PM, Andrea Faulds wrote:
I think the more important issue is the conflict with the
ReflectionTypeAnnotation RFC, which proposes something similar to
what was originally part of the Return Types RFC:
https://wiki.php.net/r
On Sat, Jan 31, 2015 at 8:27 PM, Andrea Faulds wrote:
>
>> On 1 Feb 2015, at 01:23, Dan Ackroyd wrote:
>>
>> On 31 January 2015 at 17:31, Philip Sturgeon wrote:
>>> On Sat, Jan 31, 2015 at 3:12 AM, Matteo Beccati wrote:
2) There's a tiny bit of overlap with "scalar type hints",
>>>
>>
> On 1 Feb 2015, at 01:23, Dan Ackroyd wrote:
>
> On 31 January 2015 at 17:31, Philip Sturgeon wrote:
>> On Sat, Jan 31, 2015 at 3:12 AM, Matteo Beccati wrote:
>>>
>>> 2) There's a tiny bit of overlap with "scalar type hints",
>>
>> 2) There might be some overlap in the scalar type hint stuf
On 31 January 2015 at 17:31, Philip Sturgeon wrote:
> On Sat, Jan 31, 2015 at 3:12 AM, Matteo Beccati wrote:
>>
>> 2) There's a tiny bit of overlap with "scalar type hints",
>
> 2) There might be some overlap in the scalar type hint stuff kinda,
> but I'd like to think there isn't. getClassName()
On Sat, Jan 31, 2015 at 3:12 AM, Matteo Beccati wrote:
> Hi Phil,
>
>
> On 31/01/2015 05:14, Philip Sturgeon wrote:
>>
>> This RFC adds a new method to ReflectionParameter to allow easy access
>> to a class name in a type hint, avoiding the need to actually load the
>> class and use `get_class()`
Hi Phil,
On 31/01/2015 05:14, Philip Sturgeon wrote:
This RFC adds a new method to ReflectionParameter to allow easy access
to a class name in a type hint, avoiding the need to actually load the
class and use `get_class()` or `::class`.
https://wiki.php.net/rfc/reflectionparameter-getclassname
This RFC adds a new method to ReflectionParameter to allow easy access
to a class name in a type hint, avoiding the need to actually load the
class and use `get_class()` or `::class`.
https://wiki.php.net/rfc/reflectionparameter-getclassname
Cheers.
--
PHP Internals - PHP Runtime Development Ma
10 matches
Mail list logo