Permalink
Browse files

[ClassLoader] fixed usage of trait_exists()

  • Loading branch information...
1 parent b50ee28 commit c36b0fc0ec4c465d114bf687082377255cdc5c5e @fabpot fabpot committed Oct 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 DebugUniversalClassLoader.php
@@ -54,7 +54,7 @@ public function loadClass($class)
if ($file = $this->findFile($class)) {
require $file;
- if (!class_exists($class, false) && !interface_exists($class, false) && (!function_exists('trait_exists') || !trait_exists($class))) {
+ if (!class_exists($class, false) && !interface_exists($class, false) && (!function_exists('trait_exists') || !trait_exists($class, false))) {
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 c36b0fc

Please sign in to comment.