diff --git a/helpers.php b/helpers.php
index <HASH>..<HASH> 100755
--- a/helpers.php
+++ b/helpers.php
@@ -334,11 +334,15 @@ if (! function_exists('class_uses_recursive')) {
     /**
      * Returns all traits used by a class, its subclasses and trait of their traits.
      *
-     * @param  string  $class
+     * @param  object|string  $class
      * @return array
      */
     function class_uses_recursive($class)
     {
+        if (is_object($class)) {
+            $class = get_class($class);
+        }
+
         $results = [];
 
         foreach (array_merge([$class => $class], class_parents($class)) as $class) {
allow passing object instance to class_uses_recursive (#<I>)