Explorar o código

fixed no method exception throwing in YamlDriver

Alex Kovalevych %!s(int64=13) %!d(string=hai) anos
pai
achega
1a36c7e54f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Metadata/Driver/YamlDriver.php

+ 2 - 2
Metadata/Driver/YamlDriver.php

@@ -178,7 +178,7 @@ class YamlDriver extends AbstractFileDriver
         $methods = array();
         foreach ($config as $name) {
             if (!$class->hasMethod($name)) {
-                throw new RuntimeException(sprintf('The method %s does not exist in class %s.', $mName, $name));
+                throw new RuntimeException(sprintf('The method %s does not exist in class %s.', $name, $class->getName()));
             }
 
             $methods[] = new MethodMetadata($class->getName(), $name);
@@ -186,4 +186,4 @@ class YamlDriver extends AbstractFileDriver
 
         return $methods;
     }
-}
+}