diff --git a/src/Common/ReflectedClass.php b/src/Common/ReflectedClass.php index 9d84c61..97e9a0e 100644 --- a/src/Common/ReflectedClass.php +++ b/src/Common/ReflectedClass.php @@ -16,7 +16,9 @@ class ReflectedClass implements ReflectedInterface public function getClassName() : string { - return end(explode('\\', $this->name)); + $exploded = explode('\\', $this->name); + + return end($exploded); } public function getProperties(bool $deep = true) : array