Skip to content

Commit

Permalink
Fix FQCN resolution for ServiceMap (#7)
Browse files Browse the repository at this point in the history
Update ServiceMap.php
  • Loading branch information
erickskrauch authored May 28, 2024
2 parents f841ad3 + 5579175 commit f561249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ServiceMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function getServiceClassFromNode(Node $node): ?string {
if ($node instanceof String_) {
$service = $node->value;
} elseif ($node instanceof ClassConstFetch && $node->class instanceof Name) {
$service = $node->class->getFirst();
$service = $node->class->toString();
} else {
return null;
}
Expand Down

0 comments on commit f561249

Please sign in to comment.