From 9ea99e88468748cb82492c2cf6ff97d9cb12ca8e Mon Sep 17 00:00:00 2001 From: Chris Lloyd Date: Sat, 11 May 2024 18:40:34 +0100 Subject: [PATCH] Get the class using its name, not just its namespace name --- src/Class/Entry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Class/Entry.php b/src/Class/Entry.php index b5cf44b89..5e055cdf8 100644 --- a/src/Class/Entry.php +++ b/src/Class/Entry.php @@ -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);