Skip to content

Commit

Permalink
Merge pull request #2429 from 27pchrisl/class-namespace
Browse files Browse the repository at this point in the history
Get the class using its name, not just its namespace name
  • Loading branch information
Jeckerson authored May 11, 2024
2 parents abc2176 + 9ea99e8 commit 424bd30
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 424bd30

Please # to comment.