Skip to content

Commit

Permalink
DependencyChecker: uses ReflectionNamedType
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Mar 15, 2019
1 parent 805e3c8 commit 9eb7e7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DI/DependencyChecker.php
Expand Up @@ -122,7 +122,7 @@ class_uses($name),
$method->getDocComment(),
self::hashParameters($method),
$method->hasReturnType()
? [(string) $method->getReturnType(), $method->getReturnType()->allowsNull()]
? [$method->getReturnType()->getName(), $method->getReturnType()->allowsNull()]
: null,
];
}
Expand All @@ -148,7 +148,7 @@ class_uses($name),
$method->getDocComment(),
self::hashParameters($method),
$method->hasReturnType()
? [(string) $method->getReturnType(), $method->getReturnType()->allowsNull()]
? [$method->getReturnType()->getName(), $method->getReturnType()->allowsNull()]
: null,
];
}
Expand Down

0 comments on commit 9eb7e7c

Please sign in to comment.