diff options
Diffstat (limited to 'lib/private/AppFramework/Utility/ControllerMethodReflector.php')
-rw-r--r-- | lib/private/AppFramework/Utility/ControllerMethodReflector.php | 4 |
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(); } } |