From b093f53a6bb73f74ce3cbcfac8a773702047da77 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Thu, 6 Nov 2025 17:18:44 +0000 Subject: [PATCH] - quick bugfix awaiting for array_last --- src/Common/ReflectedClass.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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