diff --git a/src/Di/ClassInspector.php b/src/Di/ClassInspector.php
index <HASH>..<HASH> 100644
--- a/src/Di/ClassInspector.php
+++ b/src/Di/ClassInspector.php
@@ -36,7 +36,7 @@ class ClassInspector
             if ($method === '__construct') {
                 return $dependencies;
             }
-            throw new MethodNotFoundException($class, $method);
+            throw new MethodNotFoundException($r->getName(), $method);
         }
 
         $rp = $r->getMethod($method)->getParameters();
fix bug where MethodNotFoundException was not created correctly