thekid/rfc — Issue #155: RFC 0155: lang.reflect.Routine::getReturnType(): Type instead of string
Author: thekid
Created: 2011-10-09 15:27:46+00:00
State: open

Scope of Change
====
Make lang.reflect.Routine::getReturnType() return a lang.Type. Add a
getReturnTypeName() method that implements the old behaviour.

Rationale
====
Make this consistent with lang.reflect.Parameter::getType() and
lang.reflect.Routine::getExceptionTypes()

Functionality
====

Old method
----

```php

```

New methods
----

```php

```

Any
----
If a method's return type is unknown, then Type::$ANY is returned.

Void
----
If a method does not return anything (the return type is "void"), then
Type::$VOID is returned.

Security considerations
====
n/a

Speed impact
====
None.

Dependencies
====
- BC break
- New Type::$VOID

Related documents
====
- http://xp-framework.net/rfc/contrib/rfc0155.diff
Implementing patch

Comments
====
n/a