Skip to content

Commit

Permalink
Update src/Traits/GetDependenciesTrait.php
Browse files Browse the repository at this point in the history
  • Loading branch information
DenTray authored Dec 23, 2024
1 parent 4374b4e commit bc24820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/GetDependenciesTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected function transformDependency(ReflectionParameter $parameter)
return null;
}

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

protected function getClassByInterface($interfaceName)
Expand Down

0 comments on commit bc24820

Please sign in to comment.