|
@@ -76,8 +76,8 @@ class ControllerMethodReflector implements IControllerMethodReflector {
|
|
// over phpdoc annotations
|
|
// over phpdoc annotations
|
|
if (method_exists($param, 'getType')) {
|
|
if (method_exists($param, 'getType')) {
|
|
$type = $param->getType();
|
|
$type = $param->getType();
|
|
- if ($type !== null) {
|
|
|
|
- $this->types[$param->getName()] = (string) $type;
|
|
|
|
|
|
+ if ($type instanceof \ReflectionNamedType) {
|
|
|
|
+ $this->types[$param->getName()] = $type->getName();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|