diff --git a/Utility/Reflection/ClassUtility.php b/Utility/Reflection/ClassUtility.php index 6f51a91fe..bc8a47fd7 100644 --- a/Utility/Reflection/ClassUtility.php +++ b/Utility/Reflection/ClassUtility.php @@ -113,7 +113,7 @@ public static function getHooks($classpath, $namespace, $classname = null, $exte * @throws ReflectionException Throws a Reflection exception if an error occurs. */ public static function getName($object) { - return (new ReflectionClass($object))->getName(); + return (new ReflectionClass($object))->name; } /**