summaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework/Utility/ControllerMethodReflector.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/AppFramework/Utility/ControllerMethodReflector.php')
-rw-r--r--lib/private/AppFramework/Utility/ControllerMethodReflector.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/AppFramework/Utility/ControllerMethodReflector.php b/lib/private/AppFramework/Utility/ControllerMethodReflector.php
index ef4a1959d66..7eee2ac8e52 100644
--- a/lib/private/AppFramework/Utility/ControllerMethodReflector.php
+++ b/lib/private/AppFramework/Utility/ControllerMethodReflector.php
@@ -76,8 +76,8 @@ class ControllerMethodReflector implements IControllerMethodReflector {
// over phpdoc annotations
if (method_exists($param, 'getType')) {
$type = $param->getType();
- if ($type !== null) {
- $this->types[$param->getName()] = (string) $type;
+ if ($type instanceof \ReflectionNamedType) {
+ $this->types[$param->getName()] = $type->getName();
}
}