Permalink
Browse files

Fixed missing class argument when throwing exception

  • Loading branch information...
1 parent 3f23850 commit 093e495498eda74aa546fb0b8037b4ecf1e02efd @xamado xamado committed with fabpot Jan 25, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 DebugClassLoader.php
View
@@ -83,7 +83,7 @@ public function loadClass($class)
if (!class_exists($class, false) && !interface_exists($class, false) && (!function_exists('trait_exists') || !trait_exists($class, false))) {
if (false !== strpos($class, '/')) {
- throw new \RuntimeException(sprintf('Trying to autoload a class with an invalid name "%s". Be careful that the namespace separator is "\" in PHP, not "/".'));
+ throw new \RuntimeException(sprintf('Trying to autoload a class with an invalid name "%s". Be careful that the namespace separator is "\" in PHP, not "/".', $class));
}
throw new \RuntimeException(sprintf('The autoloader expected class "%s" to be defined in file "%s". The file was found but the class was not in it, the class name or namespace probably has a typo.', $class, $file));

0 comments on commit 093e495

Please sign in to comment.