Skip to content

Commit

Permalink
Get the class using its name, not just its namespace name
Browse files Browse the repository at this point in the history
  • Loading branch information
27pchrisl committed May 11, 2024
1 parent c68f9cd commit 9ea99e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Class/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function get(): string
);
}

$classNamespace = explode(self::NAMESPACE_SEPARATOR, $reflection->getNamespaceName());
$classNamespace = explode(self::NAMESPACE_SEPARATOR, $reflection->getName());
} else {
$className = $this->classname;
$classNamespace = explode(self::NAMESPACE_SEPARATOR, $className);
Expand Down

0 comments on commit 9ea99e8

Please sign in to comment.