Skip to content

Commit

Permalink
In ControllerMethodReflector type is a \ReflectionNamedType
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Dec 24, 2019
1 parent fe77681 commit 1368534
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public function reflect($object, $method) {
// over phpdoc annotations
if (\method_exists($param, 'getType')) {
$type = $param->getType();
'@phan-var \ReflectionNamedType $type';
if ($type !== null) {
$this->types[$param->getName()] = $type->getName();
}
Expand Down

0 comments on commit 1368534

Please sign in to comment.