Skip to content

Commit bc24820

Browse files
authored
Update src/Traits/GetDependenciesTrait.php
1 parent 4374b4e commit bc24820

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
@@ -26,7 +26,7 @@ protected function transformDependency(ReflectionParameter $parameter)
2626
return null;
2727
}
2828

29-
return interface_exists($class->getName()) ? $this->getClassByInterface($class->getName()) : $class->getName();
29+
return interface_exists($type->getName()) ? $this->getClassByInterface($type->getName()) : $type->getName();
3030
}
3131

3232
protected function getClassByInterface($interfaceName)

0 commit comments

Comments
 (0)