Skip to content

Commit 4bc635f

Browse files
authored
Update src/Traits/GetDependenciesTrait.php
1 parent c041efe commit 4bc635f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/GetDependenciesTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ protected function transformDependency(ReflectionParameter $parameter)
2222
{
2323
$type = $parameter->getType();
2424

25-
if (empty($type) || !$type instanceof \ReflectionNamedType) {
25+
if (empty($type)) {
2626
return null;
2727
}
2828

0 commit comments

Comments
 (0)