Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring resolveClassMethodDependencies method #150

Merged
Prev Previous commit
Next Next commit
Update src/Traits/GetDependenciesTrait.php
DenTray authored Dec 23, 2024

Verified

This commit was signed with the committer’s verified signature.
ewdurbin Ee Durbin
commit 4374b4e663f83404354aefcf0b14255f6a50b58c
4 changes: 2 additions & 2 deletions src/Traits/GetDependenciesTrait.php
Original file line number Diff line number Diff line change
@@ -20,9 +20,9 @@ public function resolveClassMethodDependencies(object $instance, string $method)

protected function transformDependency(ReflectionParameter $parameter)
{
$class = $parameter->getType();
$type = $parameter->getType();

if (empty($class)) {
if (empty($type)) {
return null;
}